Binary cross entropy (BCE; aka log-loss) is a loss function associated with binary classification problems. The formula for BCE is:
where is the predicted probability that and is either 0 or 1.
Binary cross entropy (BCE; aka log-loss) is a loss function associated with binary classification problems. The formula for BCE is:
loss=N1i=1∑Nyi⋅log(yi^)+(1−yi)⋅log(1−yi^)where yi^ is the predicted probability that yi=1 and yi is either 0 or 1.
Feb 24, 2026
Feb 22, 2026
Feb 20, 2026
Feb 19, 2026
Feb 11, 2026