PyML and OneAgainstRest
Boštjan Jerko
bostjan.jerko at mf.uni-lj.si
Thu May 27 03:21:44 EDT 2004
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[i] = res.classLabels[res.Y[i]]
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.
More information about the Python-list
mailing list