CvSVM - decision function value

asked 2013-07-23 03:49:44 -0600

updated 2013-07-23 03:51:14 -0600

Decision function value - that is signed distance to the margin

But, if I have 2 class classification with linear kernel, how can I figure out on which side of the hyperplane am I?

edit retag flag offensive close merge delete

Comments

1

When you define your training samples as +1 and -1 for positive and negative samples, the value > 0 will indicate a positive classification and a value < 0 will indicate a negative classification.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-07-23 04:39:17 -0600 )edit

I think so, but when i run the program image by image, when there no human the decision function value is around 0.1-0.8 (with different images) and when there is human is from -0,001 to 0,009 .... 0_o

Spas Hristov gravatar imageSpas Hristov ( 2013-07-23 08:42:10 -0600 )edit

Thats because humans are difficult class to simple classify binary using an svm ... use more examples to refine the margin. Also, the -0,0001 are just misclassification errrors, which will always happen. You should read more documentation on the SVM technique.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-07-23 11:15:38 -0600 )edit