You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to set val_data to None in SupervisedTrainer.train, and it is handled (for example in CallbackContainer._evaluate_model_on_validation). But, if I set val_data to None, the total_loss in Callback.get_losses is never calculated, so checkpoints are never saved in CallbackContainer.on_batch_end.
So, you should (1) log a warning saying that dev_data should not be None, or (2) handle checkpoint saving in another way when there is no dev_data (such as saving last checkpoints instead of the ones with best loss values.
The text was updated successfully, but these errors were encountered:
It is possible to set
val_data
toNone
inSupervisedTrainer.train
, and it is handled (for example inCallbackContainer._evaluate_model_on_validation
). But, if I setval_data
toNone
, thetotal_loss
inCallback.get_losses
is never calculated, so checkpoints are never saved inCallbackContainer.on_batch_end
.So, you should (1) log a warning saying that
dev_data
should not beNone
, or (2) handle checkpoint saving in another way when there is nodev_data
(such as saving last checkpoints instead of the ones with best loss values.The text was updated successfully, but these errors were encountered: