C2W2: Optimization Method Exercise 6: Output is not matching, minor change

In the 6th exercise of “Optimization Method”, My output is not matching with the expected output, it is very little different from the expected output. I matched my solution with the formula but I was not able to find the bug.

My code is as follows (Blurred), I hope admins can read the blurred message

[Removed solution code]

Please help me in finding bug

Hi, @Darkstar.

When computing parameters["W" + str(l)] and parameters["b" + str(l)], epsilon ended up in the wrong place because of operator precedence. Double-check the parentheses :slight_smile:

5 Likes