Skip to content

Instantly share code, notes, and snippets.

Last active Apr 9, 2020
What would you like to do?
# matplotlib
import matplotlib.pyplot as plt'seaborn')
# plot roc curves
plt.plot(fpr1, tpr1, linestyle='--',color='orange', label='Logistic Regression')
plt.plot(fpr2, tpr2, linestyle='--',color='green', label='KNN')
plt.plot(p_fpr, p_tpr, linestyle='--', color='blue')
# title
plt.title('ROC curve')
# x label
plt.xlabel('False Positive Rate')
# y label
plt.ylabel('True Positive rate')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment