项目作者: Tony607

项目描述 :
Multi-class classification with focal loss for imbalanced datasets
高级语言: Jupyter Notebook
项目地址: git://github.com/Tony607/Focal_Loss_Keras.git
创建时间: 2018-12-15T12:27:51Z
项目社区:https://github.com/Tony607/Focal_Loss_Keras

开源协议:Other

下载


Multi-class classification with focal loss for imbalanced datasets | DLology Blog

How to Run

Clone or download this repo

  1. git clone https://github.com/Tony607/Focal_Loss_Keras

Install required libraries

pip install -r requirements.txt

Download the fraud data set from Kaggle and extract the csv file to input folder in the project directory.
https://www.kaggle.com/ntnu-testimon/paysim1

In the project start a command line, run

  1. jupyter notebook

For baseline model, in the opened browser window open

  1. keras_base_line.ipynb.ipynb

For focal loss model, open

  1. keras_focal_loss.ipynb

Happy coding! Leave a comment if you have any question.