-
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
Make monitor
required arg of EarlyStopping callback
#10328
Make monitor
required arg of EarlyStopping callback
#10328
Conversation
Great! There are a few tests failing because the argument is now required. These tests need to be updated. Could you do it?
If you want to check and run a test locally, you can do:
After that, we would need to include a new entry in our changelog in the "changed" section. Thanks for your help! |
Thanks @awaelchli, I've fixed those tests. I now see that the docs (this page, I think) are failing because Is it as simple as changing
to
etc.? I don't know if there's any special CLI behaviour when it comes to required vs optional args. |
for more information, see https://pre-commit.ci
…ch-lightning into early-stopping-monitor
@rhjohnstone I updated the "breaking changes" description in the PR :) |
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.
LGTM !
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.
small update to use it as kwarg
…0328) Co-authored-by: Adrian Wälchli <[email protected]> Co-authored-by: Carlos Mocholí <[email protected]>
What does this PR do?
Makes
monitor
a required argument ofEarlyStopping
callback, as one of the deprecated behaviours mentioned in #10312.Does your PR introduce any breaking changes? If yes, please list them.
Yes. Users who logged the key "early_stop_on" and relied on EarlyStopping to default to monitor that key will have to change their code to
EarlyStopping(monitor="early_stop_on")
.Before submitting
PR review
Anyone in the community is welcome to review the PR.
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 🙃