text_plain_output_2.png application_vnd.jupyter.stderr_output_1.png image_output_1.png
from sklearn.metrics import accuracy_score,plot_confusion_matrix

from sklearn.svm import SVC

svc = SVC()
svc.fit(X_train, y_train)
y_pred = svc.predict(X_test)
train_acc = round(svc.score(X_train, y_train) * 100, 1)
val_acc = round(accuracy_score(y_pred, y_test) * 100, 2)

plot_confusion_matrix(svc, X_test, y_test)