-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
FIX MultiOutput* when sub-estimator does not accept metadata #28240
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
In
It looks incorrect then because we should not pass |
Would we want to enforce this contract?
I think it would be very odd for |
Oh, I see why scikit-learn/sklearn/utils/_metadata_requests.py Line 1058 in 548fc6f
we only raise if anything is passed but is not either requested, or is a |
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 @adrinjalali
I think there should also be tests for any meta-estimator, like |
I think those are tested in the common metadata routing tests @StefanieSenger |
@adrinjalali |
Yes, but I think those are already tested in the |
cc @OmarManzoor @thomasjpfan for a quick review maybe? This is for the coming patch release. |
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 @adrinjalali
Fixes #28239
And adds a common test to check the same issue with all other meta-estimators in the common test file.
cc @glemaitre @OmarManzoor