Created
September 6, 2020 17:24
-
-
Save liannewriting/f02413b3595768627b5b4c4567bab32b to your computer and use it in GitHub Desktop.
Twitter sentiment analysis python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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