tf.keras.metrics.BinaryCrossentropy

Computes the crossentropy metric between the labels and predictions.

Inherits From: Mean, Metric, Layer, Module

This is the crossentropy metric class to be used when there are only two label classes (0 and 1).

name (Optional) string name of the metric instance.
dtype (Optional) data type of the metric result.
from_logits (Optional )Whether output is expected to be a logits tensor. By default, we consider that output encodes a probability distribution.