Week 4 A2 ex.4

As this is the 2nd assignment of 4th week, make sure you are calling correct functions with correct arguments, specifically for parameters and grads.

1 Like

I guess so, I’m calling initialize_parameters with n_x, n_h, n_y as arguments

That is correct…

1 Like

I guess you passed assignment 1 which is difficult from that one. So, I suggest go through the instructions and your code again and you will find a bug, maybe a typo or small mistake.

1 Like

I would guess that you have the wrong data stored in parameters[“dW1”].

1 Like

problem was with arguments in the second backward propagation function I forgot to change values when copied it and used cache1 in pair with dA2 instead of cache2 with dA1