I’m getting this Assertion Error in the C2 W1 Assertion Error Exercise 4.
There is a mistake in the backward propagation! difference = 0.9999999999999866
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-50-c57ee5e9e05a> in <module>
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
I’ve triple checked the code, and even reviewed the lectures to see where I might be going wrong, but I wasn’t able to pinpoint exactly where I went wrong as all the formulae were correct.
Can someone help me understand the meaning of this error, and where I might be going wrong?