-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
FEA SLEP006: Metadata routing for validation_curve
#29329
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
FEA SLEP006: Metadata routing for validation_curve
#29329
Conversation
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.
Thanks for the PR @StefanieSenger! Left a few comments.
Parameters directly passed to the `fit` method of the estimator. | ||
|
||
- If `enable_metadata_routing=True`: | ||
Parameters safely routed to the `fit` method of the estimator. | ||
See :ref:`Metadata Routing User Guide <metadata_routing>` for more | ||
details. |
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.
Same comment here. Since it's passed to more than the estimator fit
. There's the scorer and CV
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.
Thank you @adam2392, that comment also made it more clear for myself.
Co-authored-by: Adam Li <adam2392@gmail.com>
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've submitted your suggestions, @adam2392, thanks for your review.
Parameters directly passed to the `fit` method of the estimator. | ||
|
||
- If `enable_metadata_routing=True`: | ||
Parameters safely routed to the `fit` method of the estimator. | ||
See :ref:`Metadata Routing User Guide <metadata_routing>` for more | ||
details. |
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.
Thank you @adam2392, that comment also made it more clear for myself.
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 now!
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 think this is missing a test to check for deprecation of fit_params
, otherwise LGTM.
@adrinjalali |
Reference Issues/PRs
towards #22893
What does this implement/fix? Explain your changes.
Adds metadata routing to
validation_curve
and the corresponding tests.This PR is almost identical to #28975