Skip to content

shrey-soni/Music-Genre-Classification-and-Recommender-System

Repository files navigation

Music-Genre-Classification-and-Recommendation.

A ML approach to find genre of a given song file and to recommend similar songs in the same dataset.

Requirements:

  1. GTZAN Dataset. Link. This dataset contains 100 songs of 10 genres each.
  2. Libraries: numpy, pandas, sklearn, librosa, matplotlib, seaborn and ipython.display.

Walk through:

The code base is written in a kaggle notebook, you create a new notebook and start working on the same just by clicking on the dataset link provided above.

There are also no need for feature extraction from all of the audio files to a dataframe, a has already been uploaded so you just need to classify the songs according to the genre by applying the algorithm you like.

If you have some time to kill and don't fear about putting your hands into one of the deepest trench of MIR (Music Infromation Retreival) you can always got to this link, and understand how this feature extraction is taking place on the first hand.

As the file names says:

First open the Exploring-Visualizing.ipynb to learn about the dataset you are working on.

Then get to know how we are using XGBoost to classify the songs in Classification.ipynb.

And lastly you will understand how cosine_similarity works for music recommendations in Recommender-System.ipynb.

About

A ML approach to find genre of a given song file and to recommend similar songs in the same dataset.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published