Getting-Things-Done-with-Pytorch icon indicating copy to clipboard operation
Getting-Things-Done-with-Pytorch copied to clipboard

Error: ModelCheckpoint(monitor='val_loss') not found in the returned metrics

Open Alegzandra opened this issue 3 years ago • 0 comments

Hi, When running the notebook 11.multi-label-text-classification-with-bert.ipynb I encounter the following error... pytorch_lightning.utilities.exceptions.MisconfigurationException: ModelCheckpoint(monitor='val_loss') not found in the returned metrics: ['train_loss']. HINT: Did you call self.log('val_loss', tensor) in the LightningModule?

Do you know how I could fix this?

Alegzandra avatar Dec 08 '22 07:12 Alegzandra