Created
March 2, 2017 06:04
-
-
Save muhrifqii/5ebb9b7f27f7e054558563c428949974 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 scipy.optimize import brentq | |
from scipy.interpolate import interp1d | |
eer = brentq(lambda x : 1. - x - interp1d(fpr, tpr)(x), 0., 1.) | |
thresh = interp1d(fpr, thresholds)(eer) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment