Skip to content

Commit

Permalink
Simple fix for Python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mnielsen committed Jun 17, 2014
1 parent 1bf0414 commit b99eb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def SGD(self, training_data, epochs, mini_batch_size, eta,
for mini_batch in mini_batches:
self.update_mini_batch(mini_batch, eta)
if test_data:
print "Epoch {}: {} / {}".format(
print "Epoch {0}: {1} / {2}".format(
j, self.evaluate(test_data), n_test)
else:
print "Epoch %s complete" % j
Expand Down

0 comments on commit b99eb34

Please sign in to comment.