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

While using SherLockWithSVM.py getting error: TypeError: xi should be a dictionary, list or tuple #1

Open
JafferWilson opened this issue Sep 15, 2017 · 0 comments

Comments

@JafferWilson
Copy link

When I tried to run your example repository, I came across the following error:

python SherLockWithSVM.py
Training classifiers...
Traceback (most recent call last):
  File "SherLockWithSVM.py", line 201, in <module>
    SVM_CON = svm(Features_con, allFeatures)
  File "SherLockWithSVM.py", line 101, in svm
    problem = svm_problem(res['labels'], res['feature_vector'])
  File "C:\Python35\lib\site-packages\svm.py", line 103, in __init__
    tmp_xi, tmp_idx = gen_svm_nodearray(xi,isKernel=isKernel)
  File "C:\Python35\lib\site-packages\svm.py", line 71, in gen_svm_nodearray
    raise TypeError('xi should be a dictionary, list or tuple')
TypeError: xi should be a dictionary, list or tuple

Kindly, help me as early as possible.
I am using Python3.5

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

1 participant