def _reset(self):
        """Resets wait counter and cooldown counter."""
        self.cooldown_counter = 0
        self.wait = 0
Resets wait counter and cooldown counter.
keras/src/callbacks/reduce_lr_on_plateau.py