Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SVM doesn't give a Class as a result

Hi again, I am having some problems with SVM classifier. I want to classify "histograms" of Bag of words, ORB feature descriptors. I define the SVM type as follow:

svm = SVM.create (); svm.setType (SVM.C_SVC); svm.setKernel (SVM.POLY); //svm.setTermCriteria(newTermCriteria(TermCriteria.MAX_ITER,100,1e-6)); svm.setTermCriteria (new TermCriteria (TermCriteria.EPS, 100, 1e-6));

The problem is that when I do the classification I don't get any class label. The output are as if I were doing regression whereas I am trying to do classification.

Thanks!

click to hide/show revision 2
retagged

updated 2016-05-26 04:54:04 -0600

berak gravatar image

SVM doesn't give a Class as a result

Hi again, I am having some problems with SVM classifier. I want to classify "histograms" of Bag of words, ORB feature descriptors. I define the SVM type as follow:

svm = SVM.create (); svm.setType (SVM.C_SVC); svm.setKernel (SVM.POLY); //svm.setTermCriteria(newTermCriteria(TermCriteria.MAX_ITER,100,1e-6)); svm.setTermCriteria (new TermCriteria (TermCriteria.EPS, 100, 1e-6));

The problem is that when I do the classification I don't get any class label. The output are as if I were doing regression whereas I am trying to do classification.

Thanks!