Skip to content

Instantly share code, notes, and snippets.

@purva91
Created September 11, 2019 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save purva91/4a0b5dc3878260d943db1b01f725d0eb to your computer and use it in GitHub Desktop.
Save purva91/4a0b5dc3878260d943db1b01f725d0eb to your computer and use it in GitHub Desktop.
y_pred_proba = knn.predict_proba(X_test)[:,1]
fpr, tpr, thresholds = roc_curve(y_test, y_pred_proba)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment