Grokking-Deep-Learning
Grokking-Deep-Learning copied to clipboard
NameError: name 'weight_deltas' is not defined in Chapter5.ipynb "Gradient Descent Learning with Multiple Inputs"
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.
Even I noticed the same. It is mentioned in the book but somehow missed out in the code.