lightning/pytorch_lightning/callbacks
Federico Baldassarre 65b4352930
early stopping checks on_validation_end (#1458)
* Fixes PyTorchLightning/pytorch-lightning#490

`EarlyStopping` should check the metric of interest `on_validation_end` rather than `on_epoch_end`. 
In a normal scenario, this does not cause a problem, but in combination with `check_val_every_n_epoch>1` in the `Trainer` it results in a warning or in a `RuntimeError` depending on `strict`.

* Highlighted that ES callback runs on val epochs in docstring

* Updated EarlyStopping in rst doc

* Update early_stopping.py

* Update early_stopping.rst

* Update early_stopping.rst

* Update early_stopping.rst

* Update early_stopping.rst

* Apply suggestions from code review

Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>

* Update docs/source/early_stopping.rst

* fix doctest indentation warning

* Train loop calls early_stop.on_validation_end

* chlog

Co-authored-by: William Falcon <waf2107@columbia.edu>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Jirka <jirka@pytorchlightning.ai>
2020-05-25 17:33:00 +00:00
..
__init__.py Learning rate log callback (#1498) 2020-04-30 08:06:41 -04:00
base.py Progress bar callback (#1450) 2020-04-23 20:46:18 -04:00
early_stopping.py early stopping checks on_validation_end (#1458) 2020-05-25 17:33:00 +00:00
gradient_accumulation_scheduler.py changelog (#1616) 2020-04-26 16:11:22 -04:00
lr_logger.py Fix lr key name in case of param groups (#1719) 2020-05-10 17:05:34 -04:00
model_checkpoint.py Adds the option of saving the last model on checkpoint (#1908) 2020-05-25 07:47:44 -04:00
progress.py fix porgressbar postfix order (#1874) 2020-05-18 20:33:51 -04:00