Using EarlyStopping when calling Trainer.fit() multiple times
#13443
Unanswered
stweigand97
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_stepssteps or until theEarlyStoppingcallback stops the process. So far, I could not find a way to modify thepatienceparameter of theEarlyStoppingcallback so that training is resumed after the stopping criterion has been met once.Does
pytorch-lightningsupport this use case? If so, how can I update the patience parameter or modify the callbacks after the creation of theTrainerinstance and continue training? As a side note: is there some way to check what condition caused theTrainerto stop training?Beta Was this translation helpful? Give feedback.
All reactions