tf.keras.metrics.CategoricalHinge

Computes the categorical hinge metric between y_true and y_pred.

Inherits From: Mean, Metric, Layer, Module

name (Optional) string name of the metric instance.
dtype (Optional) data type of the metric result.

Standalone usage:

m = tf.keras.metrics.CategoricalHinge()