How can i know probability of class predicted by predict() function in Support Vector Machine?
Definitely read this section of the docs as there’s some subtleties involved. See also Scikit-learn predict_proba gives wrong answers Basically, if you have a multi-class problem with plenty of data predict_proba as suggested earlier works well. Otherwise, you may have to make do with an ordering that doesn’t yield probability scores from decision_function. Here’s a … Read more