Skip to content

Commit d6ecc30

Browse files
committed
fix documentation
1 parent b51072d commit d6ecc30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/source-pytorch/common/early_stopping.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ The available stopping reasons are:
103103
- ``STOPPING_THRESHOLD``: Training stopped because the monitored metric reached the stopping threshold
104104
- ``DIVERGENCE_THRESHOLD``: Training stopped because the monitored metric exceeded the divergence threshold
105105
- ``PATIENCE_EXHAUSTED``: Training stopped because the metric didn't improve for the specified patience
106-
- ``NON_FINITE_METRIC``: Training stopped because the monitored metric became NaN or infiniteIn case you need early stopping in a different part of training, subclass :class:`~lightning.pytorch.callbacks.early_stopping.EarlyStopping`
106+
- ``NON_FINITE_METRIC``: Training stopped because the monitored metric became NaN or infinite
107+
108+
In case you need early stopping in a different part of training, subclass :class:`~lightning.pytorch.callbacks.early_stopping.EarlyStopping`
107109
and change where it is called:
108110

109111
.. testcode::

0 commit comments

Comments
 (0)