PyTorch implementation of binary and multi-class focal loss functions
Pytorch implementation of Class Balanced Loss based on Effective number of Samples