From 4a60b39f4214fd8724400f203248a06716ccad67 Mon Sep 17 00:00:00 2001 From: Ian Goodfellow Date: Mon, 19 Sep 2016 04:18:35 -0700 Subject: [PATCH] print out accuracy on failure --- tests/test_mnist_accuracy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_mnist_accuracy.py b/tests/test_mnist_accuracy.py index eca428022..52d4f1f6c 100644 --- a/tests/test_mnist_accuracy.py +++ b/tests/test_mnist_accuracy.py @@ -54,7 +54,7 @@ def main(argv=None): # Evaluate the accuracy of the MNIST model on legitimate test examples accuracy = tf_model_eval(sess, x, y, predictions, X_test, Y_test) - assert float(accuracy) >= 0.97 + assert float(accuracy) >= 0.97, accuracy if __name__ == '__main__':