views:

42

answers:

1

I am using openCV but I can't find anything in the documentation about what the parameter returnDFVal means in the predict method for support vector machines. Does anybody else know?

A: 

I haven't looked at the documentation, and I haven't used SVMs from OpenCV (but I have used LIBSVM). My guess is that it means: return decision function value. If you set it to true, you get the distance to the margin (and you get the class by looking at the sign of that value) and if it is false it returns +1 or -1 depending on the class.

carlosdc
I believe OpenCV uses libsvm. Wow, would never have guessed the meaning of that parameter. Thank you for your help.
John Robertson