A comprehensive music recommendation system using collaborative filtering, content-based, and popularity-based approaches, optimized for Google Colab.
-
Popularity-Based Recommender
- Recommends most popular songs based on play counts
- Simple but effective baseline system
-
Collaborative Filtering
- User-based approach using KNN with Means
- Cosine similarity metric
- Optimized for sparse matrices
-
Content-Based Recommender
- Uses song metadata (artist, title)
- TF-IDF vectorization
- Efficient similarity computation
- Clone the repository:
!git clone https://github.com/codermillat/Music-Recommender-System.git
- Install dependencies:
!pip install -r requirements.txt
- Run the Streamlit app:
!streamlit run app.py
The dataset should be placed in the /data
directory:
kaggle_visible_evaluation_triplets.txt
: User listening historyunique_tracks.txt
: Song metadata
See requirements.txt
for detailed dependencies.