Skip to content

Commit b51072d

Browse files
committed
fix docs
1 parent fae7d19 commit b51072d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/source-pytorch/common/early_stopping.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ After training completes, you can programmatically check why early stopping occu
7878

7979
.. testcode::
8080

81-
from lightning.pytorch.callbacks import EarlyStopping, EarlyStoppingReason
81+
from lightning.pytorch.callbacks import EarlyStopping
82+
from lightning.pytorch.callbacks.early_stopping import EarlyStoppingReason
8283

8384
early_stopping = EarlyStopping(monitor="val_loss", patience=3)
8485
trainer = Trainer(callbacks=[early_stopping])

0 commit comments

Comments
 (0)