The Wayback Machine - https://web.archive.org/web/20250531163420/https://github.com/scikit-learn/scikit-learn/pull/26044
Skip to content

MAINT Parameters validation for compose._column_transformer.py #26044

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

ThibaultMetais
Copy link

Reference Issues/PRs

References #24862

What does this implement/fix? Explain your changes.

Adds parameters validation for make_column_transformer and make_column_selector.

@ThibaultMetais ThibaultMetais force-pushed the parameter_validation_column_transformer branch 3 times, most recently from 46a2958 to fc9b203 Compare April 1, 2023 14:52
@glemaitre glemaitre added Validation related to input validation No Changelog Needed labels Apr 1, 2023
@ThibaultMetais ThibaultMetais force-pushed the parameter_validation_column_transformer branch from c70b1ca to 8e06f31 Compare April 2, 2023 07:46
"dtype_include": "no_validation", # delegate to pandas
"dtype_exclude": "no_validation", # delegate to pandas
}
)
class make_column_selector:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not see it before but make_column_selector is a class so we cannot use validate_params. Since it is not an estimator (it does not implement fit), we cannot currently use the parameter validation framework.

@glemaitre
Copy link
Member

@ThibaultMetais I am going to close this PR. Feel free to select any other function that is not yet validated.

@glemaitre glemaitre closed this Apr 2, 2023
@ThibaultMetais ThibaultMetais deleted the parameter_validation_column_transformer branch April 3, 2023 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants