I’ve got " AssertionError: Wrong values. Check you formulas for v[‘dW1’] " error in week2 exercise 6.
My code to calcurate v[‘dW1’] is the following and I couldn’t find my mistake…
v["dW" + str(l)] = beta1 * v["dW" + str(l)] + ( 1 - beta1 ) / grads['dW' + str(l)]
and the result is
W1 =
[[ 1.63938509 -0.62678716 -0.5432521 ]
[-1.0881311 0.85032713 -2.28641362]]
W2 =
[[ 0.33425027 -0.26452709 1.47723138]
[-2.04495632 -0.30729284 -0.36896246]
[ 1.14889708 -1.08462676 -0.15739188]]
b1 =
[[ 1.7600532 ]
[-0.74613354]]
b2 =
[[-0.89307657]
[ 0.027287 ]
[ 0.56770214]]
How can I fix this ?