Skip to content

Instantly share code, notes, and snippets.

@letthedataconfess
Created December 29, 2021 18:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save letthedataconfess/dc4cf9a46b92cbb01767ece829e358dd to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
plt.figure(figsize=(6,6))
plt.title('Receiver Operating Characteristic')
plt.plot(false_positive_rate,true_positive_rate, color='red',label = 'AUC = %0.2f' % roc_auc)
plt.legend(loc = 'lower right')
plt.plot([0, 1], [0, 1],linestyle='--')
plt.axis('tight')
plt.ylabel('True Positive Rate')
plt.xlabel('False Positive Rate')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment