Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sklearn.metrics import confusion_matrix,classification_report
- # calculate confusion matrix
- confusion_matrix = confusion_matrix(y_test, y_pred)
- # get a report
- classification_report(y_test, y_pred)
Add Comment
Please, Sign In to add comment