SVM Confidence with 3 Classes
I really need to access the confidence of the prediction my SVM has made, and the method gives me the option of "returnDFVal":
returnDFVal – Specifies a type of the return value. If true and the problem is 2-class classification then the method returns the decision function value that is signed distance to the margin, else the function returns a class label (classification) or estimated function value (regression).
Unfortunately, I have 3 classes, so this doesn't work for me. Is there any way I can get around this or another method I can call to determine the confidence of my prediction?
Have you seen this?
I don't think that other question answers this one
I see that it is saying that there is a way to compute a probability from the decision function result, but with some calibration (like libsvm does); but, as the docs says, there is no way to determine the decision function value for more than 2 classes, so no probability/confidence for the prediction...
Thanks for the advice guys, do you think a possible solution could be to add an additional class to my SVM containing "ambiguous" data?
You can try it, but be careful, the ambiguous class should not contain samples that are too similar to the ones in the other classes because it may make the classifier worse.