OpenCV SVM prediction probability
Is it possible to get a prediction's probability along with the prediction when using an SVM in OpenCV?
I found some threads discussing this, but they are all from 2-3 years ago.
http://answers.opencv.org/question/14...
http://stackoverflow.com/questions/16...
Any advances on this?
I think you shall review this. I have not found a way to "extract" the probability from the prediction of the SVM. What I can tell you, is that if the prediction value is 0 (in the case of
returnDFVal=true
), it means that the prediction is on the function representation that is separating the classes; so it is the totally confusion case, and the greater the value is, the more representative for a class the sample is.