DLS Course 2 week1 Exercise 3: Wrong value

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

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”

Could someone please help?

1 Like

Okay it was because I was calculating the wrong theta_minus[i], figured it out.

So is it sorted sir?

1 Like