Skip to content

Instantly share code, notes, and snippets.

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