Music Recommender System Using Python

Sdílet
Vložit
  • čas přidán 30. 06. 2024
  • Creating a music recommender system using CZcams video descriptions involves using Natural Language Processing (NLP) techniques to analyze the text descriptions and recommend music based on the content. Here's a high-level overview of how you could approach building such a system using Python:
    1. *Data Collection:*
    - Dataset Link: www.kaggle.com/datasets/notsh...
    2. *Text Preprocessing:*
    - Clean and preprocess the text by removing special characters, punctuation, and converting all letters to lowercase.
    - Tokenize the descriptions into individual words or phrases.
    - Remove stopwords (common words like "and," "the," "is," etc.) that don't provide much context.
    3. *Feature Extraction:*
    - Convert the tokenized descriptions into numerical representations that can be used by machine learning models. You can use techniques like TF-IDF (Term Frequency-Inverse Document Frequency) or word embeddings (Word2Vec, GloVe) for this purpose.
    4. *Building a Recommender Model:*
    - Choose a recommendation algorithm. Collaborative Filtering and Content-Based Filtering are two common approaches.
    *Content-Based Filtering:*
    - In your case, content-based filtering might be more suitable since you're focusing on analyzing the video descriptions. This approach recommends items similar to those the user has shown interest in.
    - Calculate similarity scores between videos based on their preprocessed descriptions and feature representations.
    - Recommend videos that have similar descriptions to the ones the user has liked or interacted with in the past.
    5. *User Interaction and Recommendations:*
    - Allow users to input their preferences, e.g., by providing a sample video URL or keywords related to their interests.
    - Use the selected video's description for recommendation.
    - Rank the videos based on similarity scores and present the top recommendations to the user.
    💻 Source Code: github.com/Chando0185/Music_R...
    💡 Expand your knowledge and enhance your coding skills with this hands-on project! 💪
    Connect with us on social media for more exciting tutorials and projects:
    📸 Instagram: @knowledge_doctor.
    invitescon...
    💻 GitHub: github.com/Chando0185
    📘 Facebook: / knowledge-doctor-progr...
    🎬 Don't miss out on this amazing tutorial! Watch now and start building music recommender system. 🔐

Komentáře • 67

  • @rishabhsrinivasan8433
    @rishabhsrinivasan8433 Před 7 měsíci +1

    Also on what basis are these vectors created and what are the X and Y axis represent that u explained in ur explanation for tokenization
    Would be gr8 help if you could clear my doubts

  • @Power-of-Islam111
    @Power-of-Islam111 Před 5 měsíci +4

    please give me the complete code of music recommendation system because the link you share have not complete code kindly share complete code?

  • @kamnasharma7300
    @kamnasharma7300 Před 3 měsíci +3

    couldnt deploy app , streamlit is giving error for df.pkl not found .. kindly help in solving this

  • @nithyaaddada7329
    @nithyaaddada7329 Před měsícem +1

    What to do for memory error at cosine_similarity(matrix) could you pls tell me how to correct the error

  • @naren.j2177
    @naren.j2177 Před 4 měsíci +1

    can we use lemmatization instead of stemming ?

  • @Mobbgaming
    @Mobbgaming Před 6 měsíci +7

    bro, please don't use fake accent. Your natural accent is very good.

  • @user-im3kx6yn6i
    @user-im3kx6yn6i Před 2 měsíci +1

    Can we add the feature of playing recommended song for user?

  • @ChemistrySchool-wf2jr
    @ChemistrySchool-wf2jr Před 5 měsíci

    What algorithm did u use bro?

  • @sethuraman9884
    @sethuraman9884 Před 10 měsíci

    🔥🔥

  • @211santhoshinireddy8
    @211santhoshinireddy8 Před 4 měsíci +1

    We are getting an error in token pz can you say

  • @khanhtruongphamngoc2246
    @khanhtruongphamngoc2246 Před měsícem +1

    sir, how can i evaluate the accuracy of the model?

  • @RaviChandran-oi2wf
    @RaviChandran-oi2wf Před 3 měsíci +1

    I cant run using streamlit could you help me with that

  • @PabloEscobar-p5l
    @PabloEscobar-p5l Před 8 dny

    what should i do :
    FileNotFoundError: [Errno 2] No such file or directory: 'df.pkl'

  • @jarvisgohil8035
    @jarvisgohil8035 Před 5 měsíci +2

    my recommendation function is not working
    def recommender(song_name):
    idx = df[df['song']==song_name].index[0]
    distance = sorted(list(enumerate(similer[idx])), reverse=True, key=lambda x: x[1])
    song = []
    for s_id in distance[1:21]:
    song.append(df.iloc[s_id[0]].song)
    return song
    recommender("Learning To Hunt")
    ans:
    ["She Ain't Your Ordinary Girl"]
    only showing one

  • @nanthithasoundar5556
    @nanthithasoundar5556 Před 2 měsíci

    tokenization is not working,it shows me lookuperror

  • @_itssouravchoudhary_
    @_itssouravchoudhary_ Před 10 dny

    how you open these all files on vscode please explain

  • @rishabhsrinivasan8433
    @rishabhsrinivasan8433 Před 7 měsíci +3

    Also Sir how can we test the accuracy if this model??

  • @pritampremi12
    @pritampremi12 Před 7 měsíci +2

    when i call the token its did not work its give some error

  • @knowledgedoctor3849
    @knowledgedoctor3849  Před 7 měsíci +3

    Final Year Project Me Bhi Use Kar Sakte Hoo, Muje Acca Lagega koi Mujse Sike Python, Deep Learning Then Khut us project banake College me submit kare🌻
    Actually Muje Sikane ka bohot adat he sach bolo tho Accha hi lagta he..
    Sath me rehena 🤗🌼🌻

    • @ravibansal6675
      @ravibansal6675 Před 4 měsíci

      I am using it for final year project. Could you please share project report of this project with me?

  • @calvinleonard2105
    @calvinleonard2105 Před 10 měsíci +1

    What method use in this project sir? Thank you

  • @tss4763
    @tss4763 Před 10 měsíci +3

    Bro send project report

  • @nilaybirari6381
    @nilaybirari6381 Před 3 měsíci +1

    Problem Solved Just rename Df and similarity files as df.pkl and similarity.pkl and restart and run

  • @user-cc2ni1wi2m
    @user-cc2ni1wi2m Před 5 měsíci +1

    i getting error at creating the function can you help

  • @ROHITRAWAT-et5tr
    @ROHITRAWAT-et5tr Před měsícem +2

    df.pickle file and similarity.pkl file is not created why?

    • @subratmohapatra2080
      @subratmohapatra2080 Před 21 dnem

      You must run the .ipynb file completely to generate the df.pickle file

  • @jarvisgohil8035
    @jarvisgohil8035 Před 4 měsíci

    can you tell me the objective of this project

  • @nilaybirari6381
    @nilaybirari6381 Před 3 měsíci +1

    Bro i am gonna use this project as a Final Year Project But getting error plz help :
    No such file or directory: 'df.pkl'

    • @user-lf8qe5wt5b
      @user-lf8qe5wt5b Před 3 měsíci

      same probblem

    • @nilaybirari6381
      @nilaybirari6381 Před 3 měsíci

      @@user-lf8qe5wt5b My problem Solved bro Just rename Df file with df.pkl and similarity.pkl put .pkl to both file and project will run.

    • @nilaybirari6381
      @nilaybirari6381 Před 3 měsíci

      Problem Solved Just Put or rename .pkl to Df and similarity files as df.pkl and similarity.pkl

  • @Beakymon
    @Beakymon Před 8 měsíci +1

    So we can only search from the sample of 5000 songs?

    • @GuruHomelander
      @GuruHomelander Před 8 měsíci

      More data better the model

    • @llllllllllllllkl
      @llllllllllllllkl Před 3 měsíci

      @@GuruHomelander how can I add data , if i add directly it will be different heads like text albums descs etc.

  • @techwithvr1553
    @techwithvr1553 Před 3 měsíci +1

    Please Share df.pkl, similarity.pkl file or You can send Folder.

  • @dhruvikhimasiya9560
    @dhruvikhimasiya9560 Před 8 měsíci

    I reached till studio but now I am not understanding what we have to do in studio, please help

  • @kingofleader142gamer3
    @kingofleader142gamer3 Před 8 měsíci

    streamlit shown blank

  • @rishabhsrinivasan5664
    @rishabhsrinivasan5664 Před 7 měsíci +1

    Sir can you please provide the Df.pkl files

    • @knowledgedoctor3849
      @knowledgedoctor3849  Před 7 měsíci +2

      Train it pls it will automatically generate

    • @elfincredible9002
      @elfincredible9002 Před 7 měsíci

      I'm stuck here, could you give us pointers please? @@knowledgedoctor3849

    • @rishabhsrinivasan8433
      @rishabhsrinivasan8433 Před 7 měsíci

      Got it Sir
      @@knowledgedoctor3849

    • @allouchizakaria
      @allouchizakaria Před 6 měsíci

      import pickle
      pickle.dump(similarity,open('similarity.pkl','wb'))
      pickle.dump(df,open('df.pkl','wb'))

    • @uniqueb4614
      @uniqueb4614 Před měsícem

      @@allouchizakaria where i insert this help please

  • @ayushburman2113
    @ayushburman2113 Před 7 měsíci +2

    please provide -df.pkl file

    • @allouchizakaria
      @allouchizakaria Před 6 měsíci

      import pickle
      pickle.dump(similarity,open('similarity.pkl','wb'))
      pickle.dump(df,open('df.pkl','wb'))

    • @urjashah4564
      @urjashah4564 Před 2 měsíci

      @@allouchizakariaI have to make a new file with this code only and name it as df.pkl

  • @varmagokul5122
    @varmagokul5122 Před 2 dny

    /r why shouldn't removed

  • @tss4763
    @tss4763 Před 10 měsíci

    And seminar ppt

  • @aryan8437
    @aryan8437 Před 8 měsíci +2

    please provide me pkl files

  • @madhumithakolkar_
    @madhumithakolkar_ Před měsícem

    Please don’t talk like this , it’s painful to hear . Indian accents are better than whatever this is .

  • @pious007
    @pious007 Před 6 měsíci

    MemoryError: Unable to allocate 23.6 GiB for an array with shape (3161436880,) and data type float64 How did u not get this error?

    • @knowledgedoctor3849
      @knowledgedoctor3849  Před 6 měsíci

      Take sample of the data, Seems Data Quite Big & It's Unable to allocated by YOUR memory or Use Google Colab Pro.

    • @pious007
      @pious007 Před 6 měsíci

      @@knowledgedoctor3849 is there a way i can use all songs and just store the results of distance Matrix to access it immediately everytime i need to find similarities?