tf.keras.losses.hinge

View source on GitHub

Computes the hinge loss between y_true and y_pred.

tf.keras.losses.hinge(
    y_true, y_pred
)

Args:

Returns:

Tensor with one scalar loss entry per sample.