Skip to content

Instantly share code, notes, and snippets.

@sadimanna
Created June 20, 2020 14:56
Show Gist options
  • Save sadimanna/89cb111e2acc2977f042969e6c7b8224 to your computer and use it in GitHub Desktop.
Save sadimanna/89cb111e2acc2977f042969e6c7b8224 to your computer and use it in GitHub Desktop.
def FP(y, pred, th=0.5):
pred_t = (pred > th)
return np.sum((pred_t == True) & (y == 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment