tfa.losses.sigmoid_focal_crossentropy

View source on GitHub

Args

y_true: true targets tensor.
y_pred: predictions tensor.
alpha: balancing factor.
gamma: modulating factor.

Weighted loss float Tensor. If reduction is NONE,this has the same shape as y_true; otherwise, it is scalar.