-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change Checkpoint callback's save_best_only
to save_top_k
#70
Comments
@vincentzlt good suggestion. I like the change. Any takers? @vincentzlt interested in making this change? |
i'm interested in this feature, i'll give it a try 😄 |
awesome! |
Hi, I have some questions. I noticed But how does this line work then? https://github.com/williamFalcon/pytorch-lightning/blob/master/pytorch_lightning/callbacks/pt_callbacks.py#L223-L224 Also, there were some |
* docs: enable syntax highlight * feat: change Checkpoint callback's `save_best_only` to `save_top_k` fix #70 * docs: update docs for save_top_k * revert other files * style: lint for travis-ci * fix typo * make flake8 happy * update according to review * add tests * rename func to private * add doc on `save_top_k == 0` * make flake8 happy * update according to PR comments * change some f-strings * Update pt_callbacks.py * Update test_models.py * update options * create folders * Update test_models.py * change epoch num * support calling multiple times, add docs and tests * update docs * roll back changes in earlystopping * clean test files * make flake8 happy * fix epoch number * update tests about epoch numbers * clean debugging code * fix testing utils codes * fix testing utils codes * fix testing utils codes * fix testing utils codes * change save_dir to tests/tests according to previous lines * remove unused overwrite option * make flake8 happy * change var name as per review * make flake8 happy * update property name to work on master * elaborate in the docs * update docs as per review * revert previous commit accidentally pressed wrong button when solving conflicts
Is your feature request related to a problem? Please describe.
save_best_only
is a special case ofsave_top_k
. However,save_tok_k
checkpoints can be used to create ensemble model during the test time.Describe the solution you'd like
keep a dict of
{epoch: monitor}
of lengthk
, and save new ckeckpoint that can enter this dict, remove the worst checkpoint.The text was updated successfully, but these errors were encountered: