Skip to content

Instantly share code, notes, and snippets.

@Mehdi-Amine
Created June 23, 2020 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mehdi-Amine/ef6ca05b3003ec633e35cfeb1fa5a947 to your computer and use it in GitHub Desktop.
Save Mehdi-Amine/ef6ca05b3003ec633e35cfeb1fa5a947 to your computer and use it in GitHub Desktop.
recall of a happy neural network
def recall(tp, fn):
return tp / (tp + fn)
print(f"Recall: {recall(tp, fn)}")
'''
Out:
Recall: 0.9677852348993289
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment