-
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
update docs on checkpoint_callback Trainer argument #4461
Conversation
Hello @awaelchli! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-11-02 04:01:20 UTC |
Codecov Report
@@ Coverage Diff @@
## master #4461 +/- ##
=======================================
+ Coverage 91% 93% +2%
=======================================
Files 113 113
Lines 8397 8192 -205
=======================================
- Hits 7655 7624 -31
+ Misses 742 568 -174 |
what if both a checkpoint_callback is passed in callbacks and |
@rohitgr7 no, because |
@awaelchli not always I think. Only if someone passes a ModelCheckpoint explicitly in the callbacks. |
# this is now a warning
Trainer(checkpoint_callback=ModelCheckpoint(...))
# this should not throw a warning, because it is now the recommended way
Trainer(callbacks=[ModelCheckpoint(...)])
# equivalent
Trainer(checkpoint_callback=True (default), callbacks=[ModelCheckpoint(...)]) |
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.
oh okay got it, where the hell is my head 😅
just one more regarding the deprecation. @Borda said it's always +v0.2 while deprecating something but this thing is marked as deprecated in v1.1 and removed in v1.4
* docs update * update callbacks docs * docs * notebook examples * warning * line lenght * update deprecation Co-authored-by: Sean Naren <sean.narenthiran@gmail.com> Co-authored-by: Roger Shieh <55400948+s-rog@users.noreply.github.com> (cherry picked from commit 6ae4c6e)
* docs update * update callbacks docs * docs * notebook examples * warning * line lenght * update deprecation Co-authored-by: Sean Naren <sean.narenthiran@gmail.com> Co-authored-by: Roger Shieh <55400948+s-rog@users.noreply.github.com>
What does this PR do?
Fixes #4446
Adds docs update to deprecation introduced in #4336
PR review