espnet.utils.training.train_utils.check_early_stop
Less than 1 minute
espnet.utils.training.train_utils.check_early_stop
espnet.utils.training.train_utils.check_early_stop(trainer, epochs)
Check an early stopping trigger and warns the user if it’s the case.
- Parameters:
- trainer – The trainer used for training
- epochs – The maximum number of epochs