Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
246 B
2
Indexable
Never
from sklearn import metrics
fpr, tpr, thresholds = metrics.roc_curve(y, scoresy_pred_knn)
fpr2, tpr2, thresholds2 = metrics.roc_curve(y, y_preict_LR)

auc = metrics.auc(fpr,tpr)
auc2 = metrics.auc(fpr2,tpr2)
plt.plot(fpr,tpr)
plt.plot(fpr2,tpr2)