@@ -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.
@@ -956,7 +956,10 @@ def fit(self, X, y=None):
956
956
return self
957
957
958
958
def transform (self , X , y = None ):
959
- """Center and scale the data
959
+ """Center and scale the data.
960
+
961
+ Can be called on sparse input, provided that ``RobustScaler`` has been
962
+ fitted to dense input and ``with_centering=False``.
960
963
961
964
Parameters
962
965
----------
0 commit comments