How to evaluate every X steps? #12349
Answered
by
akihironitta
zorikg
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
What is the best practice for performing evaluation on the dev and/or test set/s every X steps and not every epoch end? In the documentation I saw the options of overriding Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
akihironitta
Mar 17, 2022
Replies: 1 comment 4 replies
-
Hi @zorikg! You can configure it through the trainer flag # check validation set 4 times during a training epoch
trainer = Trainer(val_check_interval=0.25) https://pytorch-lightning.readthedocs.io/en/latest/common/trainer.html#val-check-interval |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
zorikg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @zorikg! You can configure it through the trainer flag
val_check_interval
. e.g.https://pytorch-lightning.readthedocs.io/en/latest/common/trainer.html#val-check-interval