Skip to content

Instantly share code, notes, and snippets.

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