-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MAINT Use _validate_params in Power and Quantile Transformer #23672
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
MAINT Use _validate_params in Power and Quantile Transformer #23672
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.
I removed the tests checking the parameter at transform. If we enforce this checking, it should be done for all estimators.
Otherwise the rest is LGTM.
I'm ok with that |
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 @Gandagorn
…learn#23672) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Reference Issues/PRs
towards #23462
What does this implement/fix? Explain your changes.
_parameter_contraints
inPowerTransformer
andQuantileTransformer
.self._validate_params
infit
functions.Any other comments?
The test
test_quantile_transform_check_error()
fails because it also checks the parameters duringtransform
andinverse_transform.
I am unsure whether I should remove this test or also callself._validate_params
intransform
andinverse_transform.