Created
September 6, 2020 17:25
-
-
Save liannewriting/c0ff0abfa9ee4e17c7bc97e3f332d16f 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
pos_fpr, pos_tpr, pos_thresholds = roc_curve(df_labelled['is_pos'], df_labelled['textblob_sentiment'], pos_label=1) | |
pos_roc_auc = auc(pos_fpr, pos_tpr) | |
plot_roc_curve(pos_fpr, pos_tpr, pos_roc_auc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment