question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow turning off saving best model after epochs (DONE) and regression prediction instability (TODO)

See original GitHub issue

Saving the current best model after epochs does not consume too much time if the training is for big models, but it could be a high cost for training small models. I have found no way to turn off the saving best model feature. Tried to set skip_save_progress_weights=True, skip_save_processed_input=True but it did not help. Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
w4nderlustcommented, Feb 17, 2019

Yes, it saves the best weights if the performance on validation improves. I can think about adding a --skip_save_best_model parameter, but then the model will never be saved. There could be some use cases where that could be useful (hyperparameters search for instance). I may also try to find a way to keep the best model weights copied in memory and just saved at the end. Will add this to the list of enhancements.

0reactions
w4nderlustcommented, Sep 29, 2020

The regression isntability issue should have been solved. Please reopen if it is still an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow turning off saving best model after epochs (DONE) and ...
I have found no way to turn off the saving best model feature. ... after epochs (DONE) and regression prediction instability (TODO) #96....
Read more >
Keras Callbacks and How to Save Your Model from Overtraining
In this article, you will learn how to use the ModelCheckpoint callback in Keras to save the best version of your model during...
Read more >
Use Early Stopping to Halt the Training of Neural Networks At ...
Early stopping is a method that allows you to specify an arbitrary large number of training epochs and stop training once the model...
Read more >
AutoGluon Predictors
In this case, the 'best' model used by default for prediction will also be decided based on a weighted version of evaluation metric....
Read more >
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found