@@ -844,9 +844,9 @@ class RobustScaler(BaseEstimator, TransformerMixin):
844
844
and the 3rd quartile (75th quantile).
845
845
846
846
Centering and scaling happen independently on each feature (or each
847
- sample, depending on the `axis` argument) by computing the relevant
847
+ sample, depending on the `` axis` ` argument) by computing the relevant
848
848
statistics on the samples in the training set. Median and interquartile
849
- range are then stored to be used on later data using the `transform`
849
+ range are then stored to be used on later data using the `` transform` `
850
850
method.
851
851
852
852
Standardization of a dataset is a common requirement for many
@@ -863,7 +863,7 @@ class RobustScaler(BaseEstimator, TransformerMixin):
863
863
----------
864
864
with_centering : boolean, True by default
865
865
If True, center the data before scaling.
866
- This does not work (and will raise an exception) when attempted on
866
+ This will cause ``transform`` to raise an exception when attempted on
867
867
sparse matrices, because centering them entails building a dense
868
868
matrix which in common use cases is likely to be too large to fit in
869
869
memory.
@@ -930,7 +930,8 @@ def _check_array(self, X, copy):
930
930
return X
931
931
932
932
def fit (self , X , y = None ):
933
- """Compute the median and quantiles to be used for scaling.
933
+ """Compute the median and quantiles to be used for scaling. Note that
934
+ RobustScaler cannot be fitted to sparse inputs.
934
935
935
936
Parameters
936
937
----------
0 commit comments