A Loss Function Suitable for Class Imbalanced Data: “Focal Loss”

Deep Learning with Class Imbalanced Data

Saptashwa Bhattacharyya
Towards Data Science
9 min readFeb 15, 2021

--

Foggy Afternoon in Nagano, Japan (Image: Author’s Own Work)

Class Imbalance:

In machine learning sometimes we are dealt with a very good hand like MNIST fashion data or CIFAR-10 data where the examples of each class in the data-set are well balanced. What happens if in a classification problem the distribution…

--

--