Skip to content

Focal loss is used instead of Cross Entropy Loss for classification

License

Notifications You must be signed in to change notification settings

avinashsai/Focal-Loss-based-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Focal-Loss-based-classification

Image Classification

Image Classification is performed on CIFAR-10 dataset with both Categorical Cross Entropy Loss(CCE) and Focal Loss(FL). Focal Loss showed better performance when compared to CCE. The training loss is much less for FL in each epoch compared to CCE. This is primarly because FL imposes heavy loss when correct samples are classified wrong.

Focal Loss is perfomed with two sets of values:

alpha = 0.25,gamma=2.

alt text

alt text

alpha = 1,gamma=0.

alt text

alt text

About

Focal loss is used instead of Cross Entropy Loss for classification

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published