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
classifier.fit(data,targets)
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/sklearn/svm/base.py", line 149, in fit
accept_large_sparse=False)
File "/usr/local/lib/python3.5/dist-packages/sklearn/utils/validation.py", line 747, in check_X_y
estimator=estimator)
File "/usr/local/lib/python3.5/dist-packages/sklearn/utils/validation.py", line 522, in check_array
array = np.asarray(array, dtype=object, order=order)
File "/usr/local/lib/python3.5/dist-packages/numpy/core/numeric.py", line 482, in asarray
return array(a, dtype,copy=False, order=order)
ValueError: setting an array element with a sequence.
How can I solve this error?Thanks in advance!
The text was updated successfully, but these errors were encountered:
classifier = svm.SVC(gamma=0.001)
The text was updated successfully, but these errors were encountered: