Model with best validation accuracy #10126
Answered
by
rohitgr7
kanodiaayush
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
Is there a way to save the model with the best validation accuracy when using early stopping? I believe right now, the model weights are the weights from the latest snapshot; but i am looking for a way to access the model with the best performance on validation. |
Beta Was this translation helpful? Give feedback.
Answered by
rohitgr7
Oct 25, 2021
Replies: 1 comment 5 replies
-
by on validation you mean while calling |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
rohitgr7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
by on validation you mean while calling
trainer.validate
or validation happening withintrainer.fit
call?