Course 2 - Week 1 - Exercise 4 - gradient_check_n

This is the error that I get - I checked my code on theta_plus and theta_minus like what other posts were suggesting, but I am pretty sure the formula was correct.

Your backward propagation works perfectly fine! difference = 7.814075313343006e-11

AssertionError Traceback (most recent call last)
in
6 expected_values = [0.2850931567761623, 1.1890913024229996e-07]
7 assert not(type(difference) == np.ndarray), “You are not using np.linalg.norm for numerator or denominator”
----> 8 assert np.any(np.isclose(difference, expected_values)), “Wrong value. It is not one of the expected values”

AssertionError: Wrong value. It is not one of the expected values

Please send me your code in a private message. Click my name and message.

It turned out that there was a typo in Ariel’s code, which I had overlooked, but Paul noticed.