tf.keras.losses.squared_hinge

View source on GitHub

Computes the squared hinge loss between y_true and y_pred.

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

Args:

Returns:

Tensor with one scalar loss entry per sample.