Course-2 : Week -1 Assignments, Programming Assignment: Gradient Checking

I am getting following error,
Request to let me know what could be problem.

There is a mistake in the backward propagation! difference = 0.5177906384974295

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

In my code i am using np.linalg.norm() function, but still getting above error

# YOUR CODE STARTS HERE
Code removed
# YOUR CODE ENDS HERE

Request to reply for the above post

@surya1 solved it.

It was a mistake when computing theta_minus[i].

1 Like