    def clear(self) -> None:
        """
        Clears out the tracked metrics, but keeps the patience
        """
        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
        self.best_epoch_metrics.clear()
Clears out the tracked metrics, but keeps the patience
allennlp/training/metric_tracker.py