def on_validation_epoch_end(self, trainer, pl_module):
    val_es_key = 'val_early_stop_on'
    if (trainer.callback_metrics.get(val_es_key) is not None):
        self.monitor = val_es_key
    if (val_es_key in trainer.callback_metrics):
        self.strict = False
    self._validate_condition_metric(trainer.callback_metrics)
def on_validation_epoch_end(self, trainer, pl_module):
    val_es_key = 'val_early_stop_on'
    if (trainer.callback_metrics.get(val_es_key) is not None):
        self.monitor = val_es_key
    if (val_es_key in trainer.callback_metrics):
        self.strict = False
    self._validate_condition_metric(trainer.callback_metrics)