Skip to content

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.

Notifications You must be signed in to change notification settings

rashi-bhansali/Song-Recommender-cosine-similarity-and-KNN-

Repository files navigation

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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published