Course 1, Week 2, Exercise 6 Error

I do not know why I am getting this error. I thought that propagate returns grads and cost and am having a hard time understanding why this is not working. It eventually becomes nan after 4 iterations and then stays nan thereafter.

Any help is appreciated! :frowning: I have spent an hour on this error and feel like I am going insane over one line of code.

I solved the issue! I was changing the w and b parameters and modified them each iteration by mistake.

Yes, it looked like there must have been something wrong with how you were updating the parameters, since the w and b values all ended up being huge. It’s great to hear that you were able to find the solution under your own power. Nice work!

1 Like