Computes the binary crossentropy loss.
loss_binary_crossentropy(
y_true,
y_pred,
from_logits = FALSE,
label_smoothing = 0
)
True labels (Tensor)
Predictions (Tensor of the same shape as y_true
)
Whether y_pred
is expected to be a logits tensor. By default,
we assume that y_pred encodes a probability distribution.
numeric between 0 and 1. If > 0 then smooth the labels.