ValueError: Cannot center sparse matrices: pass `with_mean=False` instead. See docstring for motivation and alternatives.
在X = StandardScaler().fit_transform(X)添加with_mean=False
X = StandardScaler(with_mean=False).fit_transform(X)
注意:本文归作者所有,未经作者允许,不得转载