When using SVM-OVR (Ove-Vs-Rest) for multiclass-classification, n classifiers are trained, with n equals to the number of classes. The i-th classifier basically computes a binary classification between the class i and the class containing all the others.
Then, in order to predict a new data sample, all the n classifiers are tested, and based on a confidence estimated for each of the classifiers, the most probable class is returned. For example, class1 = 0.59, class2 = 0.61, and so on, and the one with the associated largest probability will correspond to the output class.
I'm wondering how exactly the confidence is computed for each classifier. I have tried to read the documentation in SVC, but I can't see how the predict
function evaluates each classifier. In other words, if class1 = 0.59, how 0.59 is calculated? Which is the raw value from which it is generated? Is the euclidean distance of the sample from the hyperplane?