From 5ea7d098c20cc1912d7cf4007310aeee256d61ec Mon Sep 17 00:00:00 2001 From: zhangxuefei Date: Mon, 6 May 2019 11:35:25 +0800 Subject: [PATCH] Update the order of step and epoch_id in the print function (train.py line128) --- 02.recognize_digits/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02.recognize_digits/train.py b/02.recognize_digits/train.py index 5525845..9ce2210 100644 --- a/02.recognize_digits/train.py +++ b/02.recognize_digits/train.py @@ -125,7 +125,7 @@ def train(nn_type, feed=feeder.feed(data), fetch_list=[avg_loss, acc]) if step % 100 == 0: - print("Pass %d, Batch %d, Cost %f" % (step, epoch_id, + print("Pass %d, Batch %d, Cost %f" % (epoch_id, step, metrics[0])) step += 1 # test for epoch -- GitLab