-
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
Throw MisconfigurationError on unknown mode #5255
Conversation
Codecov Report
@@ Coverage Diff @@
## release/1.2-dev #5255 +/- ##
===============================================
Coverage 93% 93%
===============================================
Files 151 151
Lines 10621 10621
===============================================
+ Hits 9836 9839 +3
+ Misses 785 782 -3 |
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.
Would you mind add a test for that?
Hello @alanhdu! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-01-12 06:52:38 UTC |
@ydcjeff: Done (sorry for the delay -- I was out during the holidays)! Rebased onto the latest master as well. |
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.
nice.
a minor improvement would be to print available modes in the misconfiguration exception, i.e.,
mode x is unknown. Available modes are min, max.
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.
these tests can be removed?
pls ignore
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.
These tests can be removed not to collide with deprecated ones?
@alanhdu fyi, I have rebased it on |
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.
nice!
Rebased to fix the merge conflict. |
Potential closes #5252
When an unknown
mode
is passed toEarlyStopping
orModelCheckpoitn
, raise a misconfiguration error instead of just a runtime warning.