Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please anser the problem of numpy error. #29

Open
thaingiW opened this issue Nov 15, 2018 · 1 comment
Open

Please anser the problem of numpy error. #29

thaingiW opened this issue Nov 15, 2018 · 1 comment

Comments

@thaingiW
Copy link

classifier = svm.SVC(gamma=0.001)

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!

@Damini1098
Copy link

Hi thaingiW
i am also facing this issue . is this issue solved?
if you solve please help me
thank you in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants