Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.94 KB

File metadata and controls

22 lines (17 loc) · 1.94 KB

Song-Recommender-cosine-similarity-and-KNN

Colab Notebook A song recommender using Spotify data based on two approaches - "Content-based recommendation" that uses TFIDF and cosine similarity and "Collaborative Filtering based recommendation" that uses KNN (K-nearest neighbors) classification model. For content based filtering, we find similarity based on song name, album, artist and release date, whereas for collaborative filtering, we consider numeric features like accousticness, popularity, danceability, etc.

Steps to Run:

  • python3 -m pip install -r requirements.txt

  • python3 app.py

  • Home Screen:
    Screenshot 2023-09-29 at 11 45 33 AM

  • Content-based Recommendations
    A. Based on Song Name
    Screenshot 2023-09-29 at 12 43 07 PM
    B. Based on Artist
    Screenshot 2023-09-29 at 12 44 23 PM
    C. Based on Release Date
    Screenshot 2023-09-29 at 12 44 13 PM

  • Collaborative Filter based Recommendations
    Screenshot 2023-09-29 at 12 09 19 PM