Different validation for different steps #17518
Unanswered
SOUMAJYOTI
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
Here's an example implementation:
In this implementation, you can check the current training step using the global_step property of the LightningModule class. If the step is a multiple of 100, 300, or 500, we execute the first validation code, and if it is a multiple of 200 or 400, we execute the second validation code. Otherwise, we execute the default validation code.
|
Beta Was this translation helpful? Give feedback.
0 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.
-
I have a use case where I want to use different validation code in
depending on the training step count. For example, at the end of every 100, 300, 500,... training steps, I want to call one validation code whereas for all 200, 400, .. steps I want to use a different validation code. Is there a work around for this?
Beta Was this translation helpful? Give feedback.
All reactions