Skip to content

Instantly share code, notes, and snippets.

@letthedataconfess
Created January 27, 2021 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letthedataconfess/74f83898ca29add9461207fca9be0af1 to your computer and use it in GitHub Desktop.
Save letthedataconfess/74f83898ca29add9461207fca9be0af1 to your computer and use it in GitHub Desktop.
sentiment analysis
from sklearn.metrics import accuracy_score, classification_report,confusion_matrix
print("Accuracy score:",accuracy_score(y_pred,y_test))
print("Confusion matrix:",confusion_matrix(y_pred,y_test))
print("Classification report:",classification_report(y_pred,y_test))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment