reduce() takes at most 5 arguments (6 given)
我用spyder执行一直出现这个 爬文也找不到解
但用notebook打CODE就没有这个问题 是否方便请教这样的问题该如何解
=================================================================
错误资讯如下
Traceback (most recent call last):
File "<ipython-input-135-9a398721f8a5>", line 1, in <module>
a1 = scl.fit_transform(tsne_data)
File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\base.py", line
517, in fit_transform
return self.fit(X, **fit_params).transform(X)
File
"C:\ProgramData\Anaconda3\lib\site-packages\sklearn\preprocessing\data.py",
line 590, in fit
return self.partial_fit(X, y)
File
"C:\ProgramData\Anaconda3\lib\site-packages\sklearn\preprocessing\data.py",
line 612, in partial_fit
warn_on_dtype=True, estimator=self, dtype=FLOAT_DTYPES)
File
"C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\validation.py",
line 453, in check_array
_assert_all_finite(array)
File
"C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\validation.py",
line 41, in _assert_all_finite
if (X.dtype.char in np.typecodes['AllFloat'] and not np.isfinite(X.sum())
File "C:\ProgramData\Anaconda3\lib\site-packages\numpy\core\_methods.py",
line 36, in _sum
return umr_sum(a, axis, dtype, out, keepdims, initial)
TypeError: reduce() takes at most 5 arguments (6 given)
感谢回答