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?
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?
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]