PyML and OneAgainstRest

  • Thread starter =?iso-8859-2?q?Bo=B9tjan_Jerko?=
  • Start date
?

=?iso-8859-2?q?Bo=B9tjan_Jerko?=

Hello !

I am trying to use PyML and libsvm and when running training I
get the error message:

noStats in constructor
Traceback (most recent call last):
File "pyml_svm_ucenje.py", line 9, in ?
r = mc.cv(d)
File "/usr/lib/python2.3/site-packages/PyML/assess.py", line 136, in cv
r = trainTest(classifier, data, trainingPatterns, testingPatterns,
File "/usr/lib/python2.3/site-packages/PyML/assess.py", line 383,
in trainTest
return subClassifier.test(testingSet, *options, **args)
File "/usr/lib/python2.3/site-packages/PyML/assess.py", line 48, in test
res.L = res.classLabels[res.Y]


The code I am using is:

d=datafunc.DataSet("svm_data")
s=svm.SVM (ker.Polynomial (2))
mc = multi.OneAgainstRest (svm.LinearSVM())
r = mc.cv(d)

Any ideas what should I do?

Regards,

B.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top