Skip to content

Instantly share code, notes, and snippets.

@sadimanna
Created June 20, 2020 16:28
Show Gist options
  • Save sadimanna/0450d8afe859fa92a54eac78773aa9e1 to your computer and use it in GitHub Desktop.
Save sadimanna/0450d8afe859fa92a54eac78773aa9e1 to your computer and use it in GitHub Desktop.
def fdr(y,pred,th=0.5):
fp = FP(y,pred,th)
tp = TP(y,pred,th)
return fp/(fp+tp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment