Course 2, Week 1. Assignment 3: gradient_check

There is a mistake in the backward propagation! difference = 0.3333333340607017
All tests passed.

I am getting this output, but the next cell displays a congratulations that the difference is less than 10e^-7. I noticed a lot of other people were having trouble with this specific exercise as well. Is this an inconsistency, or have I made a mistake?

Thank you,
Ryan

Hi, @rwjohnson42.

There seems to be a problem with the tests. Iā€™m going to open an issue about this.

Double check your implementation and let me know if you need any help with the assignment.

Good luck :slight_smile:

1 Like

Your backward propagation works perfectly fine! difference = 2.919335883291695e-10
All tests passed.

Thank you. I fixed my code and it appears to have the correct output. I made a mistake in the J calculation where I wrote J_plus = J + epsilon, and the same for J_minus = J - epsilon. The tests still passed my code with that error. Just some info that may help debug the tests.

Best regards,
Ryan

1 Like