-
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
Monitor on training_epoch_end with ModelCheckpoint #5084
Conversation
Hello @tchaton! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-12-14 07:40:07 UTC |
…orchLightning/pytorch-lightning into bugfix/4797_model_checkpoint
Codecov Report
@@ Coverage Diff @@
## master #5084 +/- ##
======================================
Coverage 93% 93%
======================================
Files 134 134
Lines 9905 9913 +8
======================================
+ Hits 9204 9213 +9
+ Misses 701 700 -1 |
(misclicked approve instead of comment) 🙃 |
I disagree with the warning here. |
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
…orchLightning/pytorch-lightning into bugfix/4797_model_checkpoint
chks = os.listdir(tmpdir) | ||
assert 'epoch=4.ckpt' not in chks | ||
assert 'epoch=3.ckpt' not in chks | ||
assert 'epoch=2.ckpt' not in chks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is missing a pytest.warns
check with the warning thrown 😄
Also it might be better to test
os.listdir(tmpdir) == ['epoch=0.ckpt', ...]
instead of testing that the rest don't exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, let's close this one for now.
What does this PR do?
Fixes #4797
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃