Skip to content

alikaratana/Music-Genre-Classification

Repository files navigation

MUSIC GENRE CLASSIFICATION WITH MACHINE LEARNING TECHNIQUES

To use this work on your researches or projects you need:

  • Python 3.5.2
  • Python packages:
    • IPython
    • Numpy
    • Scipy
    • Pandas
    • Scikit-learn
    • Librosa
    • Matplotlib
    • Pydub
  • Jupyter Notebook (with IPython kernel)

To install Python:

First, check if you already have it installed or not.

python3 --version

If you don't have python 3 in your computer you can use the code below:

sudo apt-get update
sudo apt-get install python3

To install packages via pip install:

sudo pip3 install ipython scipy numpy pandas scikit-learn librosa matplotlib jupyter pydub

If you haven't installed pip, you can use the codes below in your terminal:

sudo apt-get update
sudo apt install python3-pip

You should check and update your pip:

pip3 install --upgrade pip

INFORMATION ABOUT THE REPOSITORY

  • config.py file includes some properties like dataset directory, test directory and some properties for signal processing and feature extraction.

  • CreateDataset.py file is used for feature extraction and creating dataset.

  • ModelTrain.py file is used for creating and training a model.

  • GenreRecognition.py file is for predicting the genres of test music files.

  • CreateThenTrain.py file runs CreateDataset.py and ModelTrain.py sequentially.

  • Jupyter Notebook files give useful information and tutorials about signal analysis and music genre classification.