keras/src/callbacks/early_stopping.py/EarlyStopping/_is_improvement
class EarlyStopping:    def _is_improvement(self, monitor_value, reference_value):
        return self.monitor_op(monitor_value - self.min_delta, reference_value)