How to include validation dataset for a final training epoch #12004
Replies: 2 comments 2 replies
-
hey @hogru ! can you explain more about what are you trying to do here? step-by-step workflow on how it should look like? |
Beta Was this translation helpful? Give feedback.
-
Hi @rohitgr7, the idea/practice is the following: I train a model "as usual": training loop, after each epoch I do a validation, I save the model if it's better than the previous best, do early stopping etc. The result is my current best model trained on the training set. Pretty standard until this point I guess. What comes next is the core of my question: I take this best model and train it for one (or a very small number of) epochs on the combined training and validation set. This way, the model sometimes improves a bit (depending on split sizes, moon phases, etc.) In vanilla pytorch code this would look something like:
Does that help? Best, |
Beta Was this translation helpful? Give feedback.
-
Hello, can you please put me on the right trajectory (link, method, ...) for the following: after training I would like to do a final (number of) training epochs including the validation dataset. I read about concatenating datasets and combining dataloaders, but how could I use those for an additional set of training epochs only?
Beta Was this translation helpful? Give feedback.
All reactions