code: def clear(self) -> None:
          
          self._best_so_far = None
          self._epochs_with_no_improvement = 0
          self._is_best_so_far = True
          self._epoch_number = 0
          self.best_epoch = None
docs: Clears out the tracked metrics, but keeps the patience and should_decrease settings.