Updated `ModelCheckpoint` documentation (#6873)
Co-authored-by: Carlos Mocholi <carlossmocholi@gmail.com> Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
This commit is contained in:
parent
b0cd9daf25
commit
e272bea4dc
|
@ -41,7 +41,10 @@ warning_cache = WarningCache()
|
|||
|
||||
class ModelCheckpoint(Callback):
|
||||
r"""
|
||||
Save the model after every epoch by monitoring a quantity.
|
||||
Save the model periodically by monitoring a quantity. Every metric logged with
|
||||
:meth:`~pytorch_lightning.core.lightning.log` or :meth:`~pytorch_lightning.core.lightning.log_dict` in
|
||||
LightningModule is a candidate for the monitor key. For more information, see
|
||||
:ref:`weights_loading`.
|
||||
|
||||
After training finishes, use :attr:`best_model_path` to retrieve the path to the
|
||||
best checkpoint file and :attr:`best_model_score` to retrieve its score.
|
||||
|
|
Loading…
Reference in New Issue