keras/src/metrics/hinge_metrics.py/SquaredHinge/__init__
class SquaredHinge:    def __init__(self, name="squared_hinge", dtype=None):
        super().__init__(fn=squared_hinge, name=name, dtype=dtype)
        # Metric should be minimized during optimization.
        self._direction = "down"