SquaredHingeΒΆ

Computes the squared hinge loss.

Abstract Signature:

SquaredHinge(reduction: str = sum_over_batch_size)

PyTorch

API: torch.nn.SoftMarginLoss
Strategy: Direct Mapping

Keras

API: keras.losses.SquaredHinge
Strategy: Direct Mapping

TensorFlow

API: tf.keras.losses.SquaredHinge
Strategy: Direct Mapping

Apple MLX

API: β€”
Strategy: Custom / Partial