keras/src/metrics/regression_metrics.py/LogCoshError/__init__
class LogCoshError:    def __init__(self, name="logcosh", dtype=None):
        super().__init__(log_cosh, name, dtype=dtype)
        # Metric should be minimized during optimization.
        self._direction = "down"