Created
June 29, 2020 21:55
-
-
Save guilhermefgs/4f02a9324139fbfa40dfc07bd594c322 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.metrics import confusion_matrix | |
tn, fp, fn, tp = confusion_matrix(y_test, y_predito).ravel() | |
precision = tp/(tp + fp) | |
recall = tp/(tp + fn) | |
fpr = fp/(fp + tn) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment