tf.keras.losses.categorical_crossentropy

View source on GitHub

Computes the categorical crossentropy loss.

tf.keras.losses.categorical_crossentropy(
    y_true, y_pred, from_logits=False, label_smoothing=0
)

Args:

Returns:

Categorical crossentropy loss value.