Skip to content

Instantly share code, notes, and snippets.

@esmitt
Created July 24, 2020 19:19
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/88f567e62f3ef18fcfeea0e34f7896cf to your computer and use it in GitHub Desktop.
Save esmitt/88f567e62f3ef18fcfeea0e34f7896cf to your computer and use it in GitHub Desktop.
Evaluation of a model in Tensorflow
# Evaluate the model on the test data using `evaluate`
print("Evaluate on test data")
score_test = model.evaluate(test_ds.batch(batch_size))
for name, value in zip(model.metrics_names, score_test):
print(name, ': ', value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment