Grokking-Deep-Learning icon indicating copy to clipboard operation
Grokking-Deep-Learning copied to clipboard

NameError: name 'weight_deltas' is not defined in Chapter5.ipynb "Gradient Descent Learning with Multiple Inputs"

Open c-r-p opened this issue 7 years ago • 1 comments

Hello

I cloned the Jupyter files this evening and when running through them I came across an error in the "Gradient Descent Learning with Multiple Inputs" script in Chapter5.ipynb https://github.com/iamtrask/Grokking-Deep-Learning/blob/master/Chapter5.ipynb

NameError: name 'weight_deltas' is not defined

I believe the following line is currently missing from the script:

weight_deltas = ele_mul(delta, input)

With this line added I got a result:

Weights:[0.1119, 0.20091, -0.09832]
Weight Deltas:[-1.189999999999999, -0.09099999999999994, -0.16799999999999987]

Thanks.

c-r-p avatar Aug 15 '18 19:08 c-r-p

Even I noticed the same. It is mentioned in the book but somehow missed out in the code.

DebankurS avatar Feb 21 '19 16:02 DebankurS