Class-balanced-loss-pytorch
Class-balanced-loss-pytorch copied to clipboard
Update class_balanced_loss.py
The typo of weight parameter causes an error. It should be "weight" and not "weights".
@krittaprot feel free to use this improved/fixed/battle-tested version, includes this fix: https://github.com/fcakyon/balanced-loss#improvements