Course 2, Week2, Exercise 6

Hello,

I am unable to find the slight error in my output of the “Update_parameters_with_adam” function.

Can someone please tell me where I’m going wrong?

Code:
{moderator edit - solution code removed}

Error:

Thank you,
Shreyas

Hello,

Thanks for everyone who read this and attempted to help. I was able to solve the error with slight alterations to my parenthesis in my “parameter[“W1”]” formula.

Yes, have a more careful look at the formula. The \epsilon is in the denominator (you got that right), but it is not under the square root, right?

True. Some very specific details can drastically change the output. Gotta have that eye for detail.

Yup. Actually that bug is especially hard since your original mistake gives only a small change in the output values, which almost looks like a rounding error.

But you’re absolutely right that part of what makes programming challenging and frustrating is that you have to deal with “big” concepts and tiny minute details all at the same time. The difference between : and ; can ruin your whole afternoon. :scream_cat: