Accessing the best validation loss so far in validation_epoch_ends #6628
-
How can I access the best validation loss in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think if you include a ModelCheckpoint in your trainer, you should be able to retrieve the best model score. But you should set your validation loss as the monitored variable in your ModelCheckpoint callback. From your |
Beta Was this translation helpful? Give feedback.
I think if you include a ModelCheckpoint in your trainer, you should be able to retrieve the best model score. But you should set your validation loss as the monitored variable in your ModelCheckpoint callback. From your
validation_epoch_end
, you should be able to retrieve your best score by reaching the callback with something similar toself.trainer.callback.best_model_score
.