Skip to content

Instantly share code, notes, and snippets.

@aateg
Created June 29, 2020 19:05
Show Gist options
  • Save aateg/a00dcdc9cf092407eee6881dfcc3f286 to your computer and use it in GitHub Desktop.
Save aateg/a00dcdc9cf092407eee6881dfcc3f286 to your computer and use it in GitHub Desktop.
from sklearn import metrics
"""
a função do sklearn retorna uma tupla
contendo numpy arrays com true positive rate (TPR)
false positive rate (FPR) e threshold
"""
fpr, tpr, thresholds = metrics.roc_curve(y_test, y_predito)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment