Add filename_suffix option to ModelCheckpoint
See original GitHub issueI would like to add filename_suffix
option to ModelCheckpoint as discussed in here. The code is here.
Idea is to be able to store a score in the filename. For example, if we specify filename_suffix="_val_loss={score:.4f}"
and score_function
that returns -loss
, saved models filenames will be, for example, model_SqueezeNet_98_val_loss=1.2413.pth
. See this example.
@alykhantejani @jasonkriss what do you think ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Add version suffix to last.ckpt · Issue #5030 - GitHub
I am asking this because of two reasons. 1) I notice in your description you didn't append epoch numbers to the filenames and...
Read more >ModelCheckpoint - Keras
ModelCheckpoint callback is used in conjunction with training using model.fit() to save a model or weights ... A few options this callback provides...
Read more >ModelCheckpoint - PyTorch Lightning - Read the Docs
checkpoint filename. Can contain named formatting options to be auto-filled. Example: # save any arbitrary metrics like `val_loss`, etc. in name # saves...
Read more >A High Level Overview of Keras ModelCheckpoint Callback
ModelCheckpoint is a Keras callback to save model weights or entire ... We can add the new data to the training data and...
Read more >Save and load models | TensorFlow Core
ModelCheckpoint callback allows you to continually save the model both during and at the end of training. Checkpoint callback usage. Create a tf ......
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 FreeTop 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
Top GitHub Comments
@alykhantejani actually I think it’s better to have both
priorty
anditeration
, than onlypriority
. Then the filename tells you how long you should run your model to get the same weights.merged in #132