Giter Site home page Giter Site logo

billboard's Introduction

Billboard

Here we implement several models to predict whether a songs will hit the Billboard hot-100 ranking. Datasets, models and result are list below.

MSD

The Million Songs Dataset, of which we only keep the Additional/subset_unique_tracks.txt file since we only need the title and artist name for each tracks.

tmp

If you don't care how we fetch the data, just ignore this folder.

We store all the temperory file here. The order is:

  • hot_100.xlsx: inlcudes all the tracks in hot-100 from 1990-01-01 to 2019-03-21
  • MSD_10000.xlsx: includes all the tracks (10000 in total) in MSD dataset
  • feature_1990_2019.xlsx: includes features we extract from spotify API for all the tracks in hot_100.xlsx and MSD_10000.xlsx from 1990 to 2019
  • feature_complete_1990_2019.xlsx: here we add "artist_score" feature to feature_1990_2019
  • feature_complete_normalized_1990_2019.xlsx: we normalized the features to have zero mean and one std in feature_complete_1990_2019

test_set and train_set

Training data and testing data are splited from ./tmp/feature_complete_normalized_1990_2019.xlsx by 75:25 ratio.

  • train.xlsx: includes 8624 samples, of which 4695 are positve and 3929 are negative.
  • test.xlsx: includes 2875 samples, of which 1553 are postive and 1322 are negative.

weights

Here we store the weights of neural network.

history

Here we store the training and testing history of neural network.

dataset.py

Here we dowload and pre-process the data.

Tempory data are stored in tmp, while training and testing data are stored in train_set and test_set respectively.

nn.py

Implementation of neural network mdoel.

Comment: The loss of this neural network does not converage well. But the accuracy converages. We suspect this is caused by outliers, since BCELoss is unbouned.

SVM.py

Implementation of SVM.

tree.py

Implementation of tree.

forest.py

Implementation of random forest.

Basic Result

Model train accuracy test accuracy
SVM 0.7968 0.8055
nn 0.8188 0.8198
tree 1.0 0.7540
forest 0.9087 0.8302

billboard's People

Contributors

zliangak 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.