Skip to content

Instantly share code, notes, and snippets.

@liannewriting
Created September 6, 2020 17:24
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 liannewriting/f02413b3595768627b5b4c4567bab32b to your computer and use it in GitHub Desktop.
Save liannewriting/f02413b3595768627b5b4c4567bab32b to your computer and use it in GitHub Desktop.
Twitter sentiment analysis python
neg_fpr, neg_tpr, neg_thresholds = roc_curve(df_labelled['is_neg'], -df_labelled['textblob_sentiment'], pos_label=1)
neg_roc_auc = auc(neg_fpr, neg_tpr)
plot_roc_curve(neg_fpr, neg_tpr, neg_roc_auc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment