-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add ignore param to save_hyperparameters #6056
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6056 +/- ##
======================================
- Coverage 91% 91% -0%
======================================
Files 160 160
Lines 11423 11430 +7
======================================
- Hits 10434 10412 -22
- Misses 989 1018 +29 |
| ignore = [ignore] | ||
| if isinstance(ignore, list): | ||
| ignore = [arg for arg in ignore if isinstance(arg, str)] | ||
| init_args = {k: v for k, v in init_args.items() if k not in 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.
how about if ignore=None from default?
1 not in None <- TypeError: argument of type 'NoneType' is not iterable
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.
@Borda: I am doing a check for if ignore, if it's None, init_args won't be changed.
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.
And also the other tests will fail, as the default is None :)
Co-authored-by: Nicki Skafte <[email protected]>
Co-authored-by: Nicki Skafte <[email protected]>
|
Hello @kaushikb11! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-02-22 11:07:25 UTC |
Co-authored-by: Nicki Skafte <[email protected]>
Co-authored-by: Rohit Gupta <[email protected]>
Co-authored-by: Rohit Gupta <[email protected]>
|
@Borda Your requested change. |
tchaton
left a comment
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 !
What does this PR do?
Add
ignoreparam tosave_hyperparametersFixes #6003
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 🙃