About code implementation of eq7
Hey thanks for the code 😄 but have some questions!!
https://github.com/wutong16/DistributionBalancedLoss/blob/14460d0acda6a3e77a8a6a5999b9746243cb1535/mllt/models/losses/resample_loss.py#L158-L160
Isn't this inconsistent with eq7

-
Like line 159 is dealing with the exp power in eq7 right? (Line 159) why are we directly multiplying it with labels, that anyhow occurs when we pass it to
self.cls_criterionright? (same goes for weight) -
Bit confused in name https://github.com/wutong16/DistributionBalancedLoss/blob/14460d0acda6a3e77a8a6a5999b9746243cb1535/mllt/models/losses/resample_loss.py#L113 Is
cls_scorehere (logits passed through sigmoid/softmax) or just pure raw classifier outputs?, because even though we call itcls_scoreit's passed the to the sameF.binary_cross_entropy_with_logits_loss