From 51538e482d80d79a8543e416a1ad028703b5d638 Mon Sep 17 00:00:00 2001 From: Joel Lowery Date: Wed, 15 Mar 2017 23:13:23 -0500 Subject: [PATCH] Minor string format fix --- ex3/ex3_nn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex3/ex3_nn.py b/ex3/ex3_nn.py index 5574b1d..d6f55b9 100644 --- a/ex3/ex3_nn.py +++ b/ex3/ex3_nn.py @@ -74,7 +74,7 @@ pred = predict(Theta1, Theta2, X) -print('Training Set Accuracy: %f\n', np.mean(np.double(pred == np.squeeze(y))) * 100) +print('Training Set Accuracy: %f\n' % (np.mean(np.double(pred == np.squeeze(y))) * 100)) input('Program paused. Press Enter to continue...')