How to run an additional EvaluationEpochLoop ? #14255
Unanswered
pclucas14
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
Also, one thing that's not good about this approach is that |
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.
-
Hi,
I'm working in a Continual Learning-like setting, where you have multiple phases, and for each phase you receive a new dataset. In this setting, at every phase I have a training and validation set, just like in regular training. So far my solution has been to replace the
FitLoop
with a custom oneEverything seems to work fine, however I want to do one more thing. Whenever I start a new round, I wand to compute the performance of my current model on the training data (this is to mimic online evaluation over a stream of data). In other words, I want to do an EvaluationEpochLoop on the training data. However, it's important that in this loop, the optimizers / schedulers are not used, and that it's run in inference mode (so I use less memory). The solution I found seems pretty hacky, and I'd like to make it better.
I added this in my
MetaFitLoop
constructorAnd this in
run()
How can I make this less hacky ? Any suggestions ?
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions