How can I check which epoch is picked for the best model? #188
-
During a training process, it keeps updating the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
At the end of each epoch, the trainer checks whether the current validation metrics are better than those of the last
to the log. You can find out which epoch
giving, for example,
which means |
Beta Was this translation helpful? Give feedback.
At the end of each epoch, the trainer checks whether the current validation metrics are better than those of the last
best_model.pth
. If they are, it overwritesbest_model.pth
and printsto the log.
You can find out which epoch
best_model.pth
corresponds to by checking for the last instance of this line in the log file, something like:giving, for example,
which means
best_model.pth
contains the model as of epoch 1872.