Custom Loss Functions¶
BCEFocalLossPyTorch¶
-
class
BCEFocalLossPyTorch
(alpha=None, gamma=2, reduction='elementwise_mean')[source]¶ Bases:
torch.nn.Module
Focal loss for binary case without(!) logit
BCEFocalLossPyTorch
(alpha=None, gamma=2, reduction='elementwise_mean')[source]¶Bases: torch.nn.Module
Focal loss for binary case without(!) logit