Can I get a list of wrong predictions in scikit-learn?

Viewed 14652

We can use svm.SVC.score() to evaluate the accuracy of the SVM model. I want to get the predicted class and the actual class in case of wrong predictions. How can I achieve this in scikit-learn?

4 Answers

I used some methods listed above. but today found something more simply. Try it. If your data has 2 features, you can use it.

X-Data

y- your predictions

false_x = X[y==0][:, 0]

True_x  = X[y==1][:, 0]
Related