text_plain_output_1.png
from sklearn import metrics

from sklearn.svm import SVC

model_linear = SVC(kernel='linear')
model_linear.fit(X_train, y_train)
y_pred = model_linear.predict(X_test)

print('accuracy:', metrics.accuracy_score(y_true=y_test, y_pred=y_pred), '\n')
print(metrics.confusion_matrix(y_true=y_test, y_pred=y_pred))