How to Use Early Stopping in test/evaluate #14135
Unanswered
yanbing-j
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 4 replies
-
EarlyStopping isn't supposed to be used during test/evaluation. Its sole purpose is to stop the training during convergence. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi pytorch-lightning team,
I want to early stop after several iterations in inference in trainer.test(). However, in training,
on_train_batch_start()
can return -1 to early stop. In test, usingon_test_batch_start
and return -1 cannot help. Does pytorch-lightning has this function in inference? Could you please share some test cases? Thank you!Beta Was this translation helpful? Give feedback.
All reactions