[QUESTION]: Save model at each epoch
See original GitHub issueWhat are you trying to do? I am trying to save the model at certain number of epochs.
Previous attempts I could not find any argument in the documentation to accomplish it.
What would be a way to do it? Inspecting the structure of the final directory after training contains the final .pt
.
Thanks.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Saving your weights for each epoch — Keras callbacks
An interesting approach to solving this problem is to save your weights for each epoch or always save the best result, but how...
Read more >Save Keras model at specific epochs - python - Stack Overflow
What I am trying to do is save the model after some specific epochs are done. Let's say for example, after epoch =...
Read more >Keras Callback example for saving a model after every epoch?
It always saves the model every freq epochs and at the end of the training. Share.
Read more >Keras Callbacks and How to Save Your Model from Overtraining
One cool trick for saving multiple times is to append the epoch number and/or current metric you are monitoring to the filepath, since...
Read more >ModelCheckpoint - Keras
save_freq: 'epoch' or integer. When using 'epoch' , the callback saves the model after each epoch. When using integer, the callback saves the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@muammar If you are still interested in saving model of each epoch, you can add the above code at L310 in train/run_training.py.
@muammar Thanks for this suggestion. We think it doesn’t hurt to have this option in Chemprop. Actually, one of the developers has already done this before in a branch. If you are interested in adding this feature and making a PR, that would be great!