The opencv document said “If true and the problem is 2-class classification then the method returns the decision function value that is signed distance to the margin”
Is this mean that if the sample belong to the class, it will return positive number. Otherwise return a negative number.
I have wrote a test project to test the return value mean( returnDFVAL = true), I found that the return value is the distance of the test sample to the margin.
In 2-class, you have 2 label(i.e. 1, -1).
If the test sample belong to smaller label(-1). The distance is plus.
Else if the test sample belong to the bigger label(1) , The distance is minus.