Customizing check_val_n_epoch
in Trainer
using callbacks
#12221
Unanswered
scho97
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 3 replies
-
hey @scho97 !! currently, there is no way to configure specific epochs for validation. |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
Hello,
I am trying to customize the epochs on which the validation is performed. For instance, if I am training 20 epochs, I want to validate on [5, 10, 15, 16, 17, 18, 19, 20] epochs, where
check_val_n_epoch=5
but, for the last 5 epochs, each epoch would be evaluated.I tried my own callback function as below:
but this yielded an
AssertionError
intrainer._run_evaluate()
function.Is there a way to customize the epochs at which we evaluate? Or can we change
check_val_n_epoch
in the middle of training (for instance, from 5 to 1)?Version
Beta Was this translation helpful? Give feedback.
All reactions