Using Focal loss for multilabel classification problem

For your first question, you can refer to this: Focal Multilabel Loss in Pytorch Explained | Kaggle

For second query; In the first scenario, the normal implementation would work well. In the second scenario, maybe look into class weighting or some type of custom sampling? Maybe of interest: https://www.sciencedirect.com/science/article/pii/S003132032100474X

1 Like