Home > Net >  Need help to create Confusion Matrix and Prediction Code
Need help to create Confusion Matrix and Prediction Code

Time:07-26

model_SVC = SVC(C=1000,gamma=0.1, kernel='rbf')
model_SVC.fit(X_train,Y_train) #CASIA2

predictions=model_SVC.predict(X_test)

print(accuracy_score(Y_test,predictions))
print(confusion_matrix(Y_test,predictions))
print(classification_report(Y_test,predictions))

I need help in creating a confusion matrix using seaborn and a code to predict the image. Can someone help me with this?

CodePudding user response:

I have used your code along with some random code to generate data and enter image description here

  • Related