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