-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
More informative error message when set_params has invalid values #21542
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
- |Enhancement| All scikit-learn models now generate a more informative | ||
error message when setting invalid hyper-parameters with `set_params`. | ||
:pr:`21542` by :user:`Olivier Grisel <ogrisel>`. | ||
|
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.
That could go in 1.0.2, no ?
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.
I would rather only put bugfixes in bugfix releases.
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.
No problem :D
- |Enhancement| All scikit-learn models now generate a more informative | |
error message when setting invalid hyper-parameters with `set_params`. | |
:pr:`21542` by :user:`Olivier Grisel <ogrisel>`. | |
- |Fix| All scikit-learn models now generate a more informative | |
error message when setting invalid hyper-parameters with `set_params`. | |
:pr:`21542` by :user:`Olivier Grisel <ogrisel>`. | |
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.
Jst kidding. I'm ok with that :)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
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. Thanks, @ogrisel.
IMO, This is a small change which comes with great value for UX.
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
…ikit-learn#21542) * More informative error message when set_params has invalid values * Update changelog * Typo [ci skip] Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com> * Typo [ci skip] Co-authored-by: Julien Jerphanion <git@jjerphan.xyz> * Simpler, more efficient code Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com> Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
…ikit-learn#21542) * More informative error message when set_params has invalid values * Update changelog * Typo [ci skip] Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com> * Typo [ci skip] Co-authored-by: Julien Jerphanion <git@jjerphan.xyz> * Simpler, more efficient code Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com> Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
This makes the message more informative by listing the valid parameters names at the relevant nesting level when calling
set_params
with invalid parameter names.See the updated pipeline/meta-estimator tests for examples on how the message is more informative.