keras/src/metrics/accuracy_metrics.py/CategoricalAccuracy/__init__
class CategoricalAccuracy:    def __init__(self, name="categorical_accuracy", dtype=None):
        super().__init__(fn=categorical_accuracy, name=name, dtype=dtype)
        # Metric should be maximized during optimization.
        self._direction = "up"