Computes the binary crossentropy loss.
Computes the binary crossentropy loss.
loss_binary_crossentropy( y_true, y_pred, from_logits = FALSE, label_smoothing = 0 )
y_true |
True labels (Tensor) |
y_pred |
Predictions (Tensor of the same shape as |
from_logits |
Whether |
label_smoothing |
numeric between 0 and 1. If > 0 then smooth the labels. |
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.