-
-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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+2] ENH: (minor) add quantile_low/high parameters to robust scaler #5929
[MRG+2] ENH: (minor) add quantile_low/high parameters to robust scaler #5929
Conversation
@@ -911,6 +912,12 @@ class RobustScaler(BaseEstimator, TransformerMixin): | |||
with_scaling : boolean, True by default | |||
If True, scale the data to interquartile range. | |||
|
|||
quantile_low : float |
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.
Could you please add .. versionadded:: 0.18
where needed in the docstrings?
This looks like an useful addition to me. @GaelVaroquaux any opinion? |
@giorgiop: Is it expected to raise at |
I think the best is at |
@giorgiop |
@@ -911,6 +912,14 @@ class RobustScaler(BaseEstimator, TransformerMixin): | |||
with_scaling : boolean, True by default | |||
If True, scale the data to interquartile range. | |||
|
|||
|
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.
cosmetics: only one blank line in the docstrings, same below.
For the rest, LGMT. |
git blame shows some docstrings was added by @amueller, may be he will be interested in reviewing this. |
@@ -1,3 +1,4 @@ | |||
|
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.
Please remove this blank line
Seems like a fine addition to me. +1 for merge provided my comments are fixed. (Sorry for the slow reply here...) |
bump? |
Sorry for the slow turnaround. LGTM. |
Do you want to add an entry to whatsnew? |
Sorry, didn't realize that was necessarily. |
@@ -59,6 +59,10 @@ Enhancements | |||
generated during build. Distribution packages will still contain generated | |||
C/C++ files. By `Arthur Mensch`_ | |||
|
|||
- :class: `RobustScaler` now accepts ``quantile_range`` parameter. |
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.
remove the space between class:
and RobustScaler
to have it link properly
93991d5
to
fe7b974
Compare
yep |
Can you rebase on master? |
I'm trying but strangely after rebase I find myself in detached HEAD |
fe7b974
to
54ea875
Compare
add versionadded tags
fix typo in docstrings of RobustScaler
add missing url link in whatsnew
a9137f4
to
fb252b0
Compare
Looks like it is ok now |
thanks @podshumok |
scikit-learn#5929) * add quantile_low/high parameters to robust scaler add versionadded tags * robust scaler: add parameter for quantile_range, check its validity * robust scaler: simplify params validations fix typo in docstrings of RobustScaler * preprocessing.data fix some lines > 80 columns * add whatsnew for robust scaler quantile_range param add missing url link in whatsnew
No description provided.