Coder Social home page Coder Social logo

music_genre_classification's Introduction

Music_genre_classification with NUMPY

팀 프로젝트


구현 방향:

최대한 라이브러리를 사용하지 않고 수업시간에 배운대로 numpy로만 구현하기
코드는 밑바닥부터 시작하는 딥러닝을 참고하였습니다.
팀프로젝트로 진행하였습니다.


Best model:

Batch normalization 적용
Node수 = 100
Learning rate = 1e-3
Dropout ratio = 0.5
Batch size = 256
Hidden layer 수 = 5
Optimizer = Adam


결과:

Epoch 50/50 [>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>]
train acc: 82.11098330094006 %
test acc: 77.24028548770818 %

loss result acc result


pytorch로 구현한 결과

추후에 혼자서 파이토치로 하면 편하게 할 수 있지 않을까 해서 해보았습니다.
Train Accuracy: 82.39657292451707 %
Test Accuracy: 76.32038065027756 %

loss train_test


실행방법

  1. download music_genre_classification.zip
  2. unzip music_genre_classification.zip
  3. python main.py (parameter로 batch_size, num_node, num_hidden_layer, epoch, learingrate를 조절할 수 있습니다. 하는 방법은 python main.py --help를 확인)

출처

데이터 출처
https://www.kaggle.com/datasets/vicsuperman/prediction-of-music-genre

코드 출처 밑바닥부터 시작하는 딥러닝 깃허브 참고
https://github.com/youbeebee/deeplearning_from_scratch/tree/4bbb640b42bddc136abd88b8caa66e874b8a1935

music_genre_classification's People

Contributors

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