Using EarlyStopping
when calling Trainer.fit()
multiple times
#13443
Unanswered
stwerner97
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am using a curriculum to train a model on progressively more challenging tasks. In each iteration, the model should either train for
max_steps
steps or until theEarlyStopping
callback stops the process. So far, I could not find a way to modify thepatience
parameter of theEarlyStopping
callback so that training is resumed after the stopping criterion has been met once.Does
pytorch-lightning
support this use case? If so, how can I update the patience parameter or modify the callbacks after the creation of theTrainer
instance and continue training? As a side note: is there some way to check what condition caused theTrainer
to stop training?Beta Was this translation helpful? Give feedback.
All reactions