emadeldeen24/AttnSleep

question about the Class-Aware Loss Function and Optimization

MatrixWP opened this issue · 1 comments

In your paper, the weight of classes is , but in your code, it seems like the formula is(N is the number of classes), I wonder if the code below is right?

class_weight[key] = round(class_weight[key] * factor, 2)

I updated it. Thank you for your comment.