From 246590911e3bbaea36f8710bf4b16441166d30ee Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Fri, 20 Jul 2018 03:08:41 +0000 Subject: [PATCH] fix 01 branch wrong changes --- 01.fit_a_line/README.cn.md | 6 +++--- 01.fit_a_line/image/ranges.png | Bin 6668 -> 6737 bytes 01.fit_a_line/index.cn.html | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/01.fit_a_line/README.cn.md b/01.fit_a_line/README.cn.md index ae33f48..a969c75 100644 --- a/01.fit_a_line/README.cn.md +++ b/01.fit_a_line/README.cn.md @@ -180,7 +180,7 @@ feed_order=['x', 'y'] 除此之外,可以定义一个事件相应器来处理类似`打印训练进程`的事件: ```python -# Specify the directory path to save the parameters +# Specify the directory to save the parameters params_dirname = "fit_a_line.inference.model" # Plot data @@ -191,11 +191,11 @@ plot_cost = Ploter(train_title, test_title) step = 0 -# event_handler to print training and testing info +# event_handler prints training and testing info def event_handler_plot(event): global step if isinstance(event, fluid.EndStepEvent): - if event.step % 10 == 0: # every 10 batches, record a test cost + if event.step % 10 == 0: # record the test cost every 10 seconds test_metrics = trainer.test( reader=test_reader, feed_order=feed_order) diff --git a/01.fit_a_line/image/ranges.png b/01.fit_a_line/image/ranges.png index 5d86b12715f46afbafb7d50e2938e184219b5b95..5325df4800985983e17476f007658d1cdb170b1c 100644 GIT binary patch delta 78 zcmeA%xo9%M!