From 9a1f3492c78b3ffb1cacd279acba60000d5ff611 Mon Sep 17 00:00:00 2001 From: xiaoting <31891223+tink2123@users.noreply.github.com> Date: Wed, 19 Jun 2019 14:04:05 +0800 Subject: [PATCH] change epoch name in training for book02 (#749) --- 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 6ebb177..04fbc29 100644 --- a/02.recognize_digits/train.py +++ b/02.recognize_digits/train.py @@ -149,7 +149,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, Epoch %d, Cost %f" % (step, epoch_id, metrics[0])) step += 1 # test for epoch -- GitLab