text_plain_output_1.png
from sklearn.metrics import accuracy_score,precision_score,confusion_matrix,f1_score,classification_report

from sklearn.svm import SVC

from sklearn.svm import SVC
from sklearn.model_selection import cross_val_score
svclassifier = SVC(C=1.0, kernel='linear')
svclassifier.fit(X_train, y_train)
y_pred = svclassifier.predict(X_test)
print(confusion_matrix(y_test, y_pred))
print('Accuracy:', accuracy_score(y_test, y_pred))
print('Precision score: ', precision_score(y_test, y_pred))