Skip to content

Instantly share code, notes, and snippets.

@sadimanna
Created June 20, 2020 16:10
Show Gist options
  • Save sadimanna/815f5c961612f1e8dcfe1f7f0a4e8e68 to your computer and use it in GitHub Desktop.
Save sadimanna/815f5c961612f1e8dcfe1f7f0a4e8e68 to your computer and use it in GitHub Desktop.
def npv(y, pred, th=0.5):
tn = TN(y,pred,th)
fn = FN(y,pred,th)
return tn/(tn+fn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment