GithubHelp home page GithubHelp logo

louismagowan / lgbm-music_classifier Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 6.02 MB

Classifying genres of songs using LightGBM and Optuna

License: MIT License

Python 0.23% Jupyter Notebook 99.77%

lgbm-music_classifier's Introduction

Contributors Forks Stargazers Issues LinkedIn

Music Genre Classification with LightGBM

About The Project

This project tries to classify English language songs from a Kaggle dataset of publicly available music data into their genres. The pre-processing of the data can be run using the prep_kaggle_data.py script or, alternatively, the processed data is avaialble in the zipped csv in this repo (music_data.csv.zip).

Exploratory data analysis of the music data can be found in the eda.ipynb notebook. Exploratory dimension reduction was also conducted using PCA and t-SNE over the lyric features of the songs (which are highly sparse). This was just to get an early indication of how dimension reduction may be useful to the task of classifying the songs into their genres.

For the actual modelling, the lyric data can be reduced to a user-specified number of output dimensions and can be reduced with either PCA, Truncated SVD or a Keras undercomplete encoder.

The modelling itself is done using LightGBM and Optuna, a hyperparamter optimization framework.

A range of output dimensions and Optuna trials were tried with the 3 dimension reduction methods. The strongest performing model overall was one that used PCA to reduce the lyric features into 400 dimensions. It achieved a test macro F1 score of 66.48%.

Feel free to check out the Medium article on this here.

(back to top)

Built With

(back to top)

Contact

(back to top)

Acknowledgments

(back to top)

lgbm-music_classifier's People

Contributors

louismagowan avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

simrit1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.