EarlyStopping every two epochs #16231
Unanswered
quentinblampey
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
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.
-
Hello,
My model is training on two different dataloaders:
loader1
is used on even epoch number, andloader2
for odd numbers.I'm using EarlyStopping, but I want it to focus only on the even number of epochs, i.e. when we are using
loader1
(thus, I don't want to consider metrics logged fromloader2
).Do you have any idea how to do this?
I tried to log the loss only for
loader1
, but it says:I could also multiply the patience by 2, but the loss is usually lower on the
loader2
, so the current lower loss value is updated everything when training on the second loader.Beta Was this translation helpful? Give feedback.
All reactions