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)
感謝回答