YanchaoYang/FDA

Not able to understand this line

Closed this issue · 1 comments

I am not able to understand the use of this line in the entropy loss implementation. How was this derived? What is its relation to number of classes?

ent = ent / 2.9444 # chanage when classes is not 19

This number is the maximum entropy when assuming uniform distribution, which is to normalize the entropy been calculated.