-
-
Notifications
You must be signed in to change notification settings - Fork 26.4k
ENH Add option to disable subsampling to preprocessing.QuantileTransformer #27636
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
ENH Add option to disable subsampling to preprocessing.QuantileTransformer #27636
Conversation
dfc209f to
93e9936
Compare
|
@betatim Thanks for the review, I've incorporated all your feedback |
93e9936 to
f37795a
Compare
|
In addition to @betatim comment, could you add an entry in the changelog as an enhancement. |
Co-authored-by: Adrin Jalali <[email protected]>
…arn#27372) Co-authored-by: Olivier Grisel <[email protected]>
…25228) Co-authored-by: Arturo Amor <[email protected]> Co-authored-by: Thomas J. Fan <[email protected]>
af60c36 to
2f9fad3
Compare
|
@RUrlus Could you merge |
c78ceef to
15bdb4b
Compare
15bdb4b to
b357a5d
Compare
b357a5d to
27e4a81
Compare
|
@betatim, @glemaitre I've incorporated all the feedback. Can we merge this one in? |
|
Hi @betatim, @glemaitre, Polite ping on the above. Would be nice if we could this one done. |
|
I'll have a look tomorrow. Thanks for pinging. |
glemaitre
left a comment
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 apart of those small doc changes.
jeremiedbb
left a comment
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 applied the remaining requested changes.
LGTM. Thanks @RUrlus
|
@jeremiedbb thanks for the approval and the fixing the last comments. I was waiting to get feedback from the second before making the changes but this works! |
Reference Issues/PRs
Closes #27373
What does this implement/fix? Explain your changes.
The current behaviour of the
preprocessing.QuantileTransformeris to disable subsampling whensubsampling > n_samplesbut this is not documented.This PR adds a documented option (
subsample=None) to disable subsampling as discussed with @lorentzenchr.Any other comments?
Arguably the default should be changed to
Nonein the future as subsampling introduces measurable bias, see #27373 for details.