Change Optimizer when validation loss stops improving #6796
Unanswered
athenawisdoms
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 1 reply
-
Hi |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello, how can we configure Lightning to switch from one optimizer to the second optimizer (e.g. Adam to SGD) when the validation loss stops improving for a certain number of validation epochs?
Kind of like
EarlyStopping
and its patience parameter, but switches optimizer instead of stop training.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions