-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Hi,
thank you for the inspired paper and for uploading your code.
Maybe I am overlooking it, but I cannot find the files specifying the class frequencies for the balanced softmax loss. The path to the file is specified in the config:
and used in the balanced softmax loss function to get the class frequencies:
BalancedMetaSoftmax-Classification/loss/BalancedSoftmaxLoss.py
Lines 26 to 29 in 34a61e4
| def __init__(self, freq_path): | |
| super(BalancedSoftmax, self).__init__() | |
| with open(freq_path, 'r') as fd: | |
| freq = json.load(fd) |
Am I correct in assuming that the file simply contains the class frequencies and, once converted to a torch tensor, that the indices of that tensor correspond to the class labels?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels