-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
[MRG] Update quantile_transform copy default to True
#13459
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
[MRG] Update quantile_transform copy default to True
#13459
Conversation
quantile_transform copy default to Truequantile_transform copy default to True
qinhanmin2014
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.
Thanks for the PR, we need a deprecation cycle here, see https://scikit-learn.org/dev/developers/contributing.html#change-the-default-value-of-a-parameter
|
@qinhanmin2014, got it. Sorry for overlooking that. What version should the Would it make sense to change the docstring to at least match the current default, since the two are still in conflict? |
0.23 (next release is 0.21)
We usually add some notes in the docstring, e.g., see https://scikit-learn.org/dev/modules/generated/sklearn.metrics.auc.html. |
|
Alright, so leave line 2492 unchanged, and just add a note that the default value stated there is incorrect and will be fixed in 0.23? |
Please refer to https://scikit-learn.org/dev/developers/contributing.html#change-the-default-value-of-a-parameter |
|
Ah, of course. I feel quite ridiculous. Thanks for pointing me in the right direction again |
|
Thanks for raising this! I agree it's an unnecessary surprise. |
|
Thanks, @qinhanmin2014 and @jnothman! Looks like a few of the checks are failing because the So just to make sure I'm following the guidelines, I should just wrap the failing tests with |
Yes, please. Maybe add some comments, e.g., The deprecation message seems strange, please try to follow the contributing guide. (e.g., |
- This change was made to prevent `FutureWarning` from being raised by the example
|
@qinhanmin2014, regarding 08faa3c, is this the proper way to deal with deprecations in the docstring examples? Or should I use |
qinhanmin2014
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, thanks @HunterMcGushion
|
Thanks @HunterMcGushion! |
…t-learn#13459)" This reverts commit 1e6d327.
…t-learn#13459)" This reverts commit 1e6d327.
What does this implement/fix? Explain your changes.
copykwarg in :func:preprocessing.data.quantile_transformfrom False to Truecopy=Falsewas in conflict with the function's documentation:scikit-learn/sklearn/preprocessing/data.py
Line 2492 in ffc63c6
copykwarg value was FalseAny other comments?
copy=Falsewas the intended default, I'd be happy to update the documentation instead