Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@esmitt
Created July 24, 2020 19:23
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 esmitt/dad84c04c337b0068f50a6c39e1d2c51 to your computer and use it in GitHub Desktop.
Save esmitt/dad84c04c337b0068f50a6c39e1d2c51 to your computer and use it in GitHub Desktop.
An example in how to compute the precision metric in Tensorflow 2
precision = Precision()
precision.update_state(y_train, y_train_pred)
precision.result().numpy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment