项目作者: sandeepkramesan

项目描述 :
Music Genre Classification using Logistic Regression
高级语言: Python
项目地址: git://github.com/sandeepkramesan/MGC-Logistic-Regression.git
创建时间: 2020-03-05T10:53:11Z
项目社区:https://github.com/sandeepkramesan/MGC-Logistic-Regression

开源协议:

下载


Music Genre Classification using Logistic Regression

Dataset Heirarchy

  1. gtzan_dataset
  2. \blues
  3. \classical
  4. \country
  5. \disco
  6. \hiphop
  7. \jazz
  8. \metal
  9. \pop
  10. \reggae
  11. \rock

Run order of files:

  1. python3 wav_convert.py

Converts music files to the needed .wav format and store into ./converted

  1. python3 wav_extract_fft.py

Extracts fft values and saves numpy files to ./fft_extracted

  1. python3 log_reg.py fft_extracted/

Applies Logistic Regression to train and classify; gives prediction accuracy, saves confusion matrix image and model

  1. python3 test.py ~/path/to/your/song/file

Loads saved model to predict genre of new file