CHI2 response in opencv SVM
Hi guys,
I'm having troubles understanding the output of the openCV CHI2 svm. Everything works fine but the output of:
float response1 = svm->predict(testing_matrix);
is a float number and not an integer like the case of LINEAR svm....It means that I have to take only the integer part of the response or I'm missing something?
thanks
i can't reproduce it:
I'm trying your example.....I don't know why in your case it works perfectly....In my case, instead, I obtain something like 1.23456
the problem is in the use of ml::SVM::EPS_SVR instead of ml::SVM::C_SVC
can you specify the platform you are working on?
Linux ubuntu 16.04 and opencv3.0
Can you run OpenCV3.2 first? 3.0 is deprecated and not supported anymore ...
@alexMm1 , if the context is still your previous BOW idea - i'd think , you'd want classification(C_SVC), not regression(C_SVR) here, or not ?
(and indeed, regression returns float values, which are more like a "distance to class margin", not a label, so thresholding would not make any sense)
ok thanks @berak, understood