From e175e0d62bc84993f624f41c6745716d512fdf6d Mon Sep 17 00:00:00 2001 From: Yongxin Wang Date: Fri, 18 Aug 2017 19:53:59 +0800 Subject: [PATCH] Update 03_linear_regression_sol.py change the note --- examples/03_linear_regression_sol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/03_linear_regression_sol.py b/examples/03_linear_regression_sol.py index 6fde7360..19166321 100644 --- a/examples/03_linear_regression_sol.py +++ b/examples/03_linear_regression_sol.py @@ -48,7 +48,7 @@ writer = tf.summary.FileWriter('./graphs/linear_reg', sess.graph) # Step 8: train the model - for i in range(50): # train the model 100 epochs + for i in range(50): # train the model 50 epochs total_loss = 0 for x, y in data: # Session runs train_op and fetch values of loss @@ -67,4 +67,4 @@ plt.plot(X, Y, 'bo', label='Real data') plt.plot(X, X * w + b, 'r', label='Predicted data') plt.legend() -plt.show() \ No newline at end of file +plt.show()