Skip to content

Instantly share code, notes, and snippets.

@doleron
Created April 9, 2023 12:21
Show Gist options
  • Save doleron/1f772ac83de851e8ca7227e42a450066 to your computer and use it in GitHub Desktop.
Save doleron/1f772ac83de851e8ca7227e42a450066 to your computer and use it in GitHub Desktop.
metrics = model.evaluate(validation_ds)
test_loss = metrics[0]
test_accuracy = metrics[1]
test_precision = metrics[2]
test_recall = metrics[3]
print("Test Loss = {:.4f}, Test Accuracy = {:.4f}, Test Precision = {:.4f}, Test Recall = {:.4f}"
.format(test_loss, test_accuracy, test_precision, test_recall))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment