Giter Site home page Giter Site logo

hermawanhermawan / song-classification Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.45 MB

Rock or rap? Apply machine learning methods in Python to classify songs into genres

Jupyter Notebook 100.00%
data-manipulation data-visualization decision-trees logistic-regression principal-component-analysis song-classification

song-classification's Introduction

PROJECT DESCRIPTION

This project makes use of a dataset comprised of songs of two music genres (Hip-Hop and Rock) to train a classifier to distinguish between the two genres based only on track information derived from Echonest (now part of Spotify). It utilizes pandas and seaborn packages in Python for subsetting the data, aggregating information, and creating plots when exploring the data for obvious trends or factors before doing machine learning. Next, the scikit-learn package is used to predict whether it is possible to correctly classify a song's genre based on features such as danceability, energy, acousticness, tempo, etc. In this case, this project applies common algorithms such as PCA, logistic regression, decision trees, and so forth.

PROJECT DETAIL

  1. Preparing our dataset
  2. Pairwise relationships between continuous variables
  3. Splitting our data
  4. Normalizing the feature data
  5. Principal Component Analysis on our scaled data
  6. Further visualization of PCA
  7. Projecting on to our features
  8. Train a decision tree to classify genre
  9. Compare our decision tree to a logistic regression
  10. Balance our data for greater performance
  11. Does balancing our dataset improve model bias?
  12. Using cross-validation to evaluate our models

song-classification's People

Contributors

hermawanhermawan avatar

Stargazers

 avatar

Watchers

 avatar

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.