SquaredHinge ============ Computes the squared hinge loss. **Abstract Signature:** ``SquaredHinge(reduction: str = sum_over_batch_size)`` .. raw:: html

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