You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[...] scale and StandardScaler can accept scipy.sparse matrices as input,
as long as with_centering=False is explicitly passed to the constructor.
However, this param is no longer available (the closest relevant discussion that I could find is in #2514, which was closed as merged in #4828 and #4125) and, naturally, trying to use it will result in a TypeError in StandardScaler's __init__().
What is the correct way to do this now? Is this with_mean=False? I can submit a fix for the docs once this is confirmed.
Versions
Darwin-15.6.0-x86_64-i386-64bit
('Python', '2.7.12 |Anaconda custom (x86_64)| (default, Jul 2 2016, 17:43:17) \n[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)]')
('NumPy', '1.10.4')
('SciPy', '0.17.0')
('Scikit-Learn', '0.17.1')
The text was updated successfully, but these errors were encountered:
Description
In Section 4.3.1.2. Scaling sparse data the docs suggest to scale sparse data by using
with_centering=False
:However, this param is no longer available (the closest relevant discussion that I could find is in #2514, which was closed as merged in #4828 and #4125) and, naturally, trying to use it will result in a
TypeError
inStandardScaler
's__init__()
.What is the correct way to do this now? Is this
with_mean=False
? I can submit a fix for the docs once this is confirmed.Versions
Darwin-15.6.0-x86_64-i386-64bit
('Python', '2.7.12 |Anaconda custom (x86_64)| (default, Jul 2 2016, 17:43:17) \n[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)]')
('NumPy', '1.10.4')
('SciPy', '0.17.0')
('Scikit-Learn', '0.17.1')
The text was updated successfully, but these errors were encountered: