-
-
Notifications
You must be signed in to change notification settings - Fork 26k
FIX ColumnTransformer metadata routing work within another meta-estimator #28188
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
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
DataFrame Support | ||
----------------- | ||
|
||
- |Enhancement| Pandas and Polars dataframe are validated directly without ducktyping |
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.
Is this part of this PR?
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.
yes, was under the wrong section, but I had forgotten to remove the duplicate. Fixed now.
I fixed the issue with the changelog and enabling auto-merge. Thanks @adrinjalali |
…ator (scikit-learn#28188) Co-authored-by: Loïc Estève <[email protected]> Co-authored-by: Guillaume Lemaitre <[email protected]>
…ator (scikit-learn#28188) Co-authored-by: Loïc Estève <[email protected]> Co-authored-by: Guillaume Lemaitre <[email protected]>
…ator (#28188) Co-authored-by: Loïc Estève <[email protected]> Co-authored-by: Guillaume Lemaitre <[email protected]>
Fixes #28186
The core of the issue is that
ColumnTransformer().get_metadata_request()
raises if called beforefit
. This fixes the issue.Note that this means all metadata requested by all given transformers are always requested, no matter whether those transformers are going to be used or not, due to column selections.