dragen1860 / Deep-Learning-with-TensorFlow-book

深度学习入门开源书,基于TensorFlow 2.0案例实战。Open source Deep Learning book, based on TensorFlow 2.0 framework.
http://www.ai101edu.com
13.21k stars 4.08k forks source link

P9 第二章4. 梯度更新 返回最优b, w 的代码有误 #106

Closed NormanBeta closed 4 years ago

NormanBeta commented 4 years ago

训练优化1000次,返回最优w,b和训练Loss的下降过程

[b, w], losses = gradient_descent(data, initial_b, initial_w, lr, num_it erations)

但gradient_descent函数return的只是[b,w]

dragen1860 commented 4 years ago

收到!谢谢。