the confusion matrix doesnt predict 2 classes correctly: from sklearn import svm clf = svm.SVC(kernel=\'linear\') clf.fit(xtrain, train)
ypredclf = clf.