When run the exercise 8 cell, I get the same output as what’s stated as the expected output, but for some reason it gives an assertion error; it says ‘wrong values for W1’.
AssertionError Traceback (most recent call last)
in
7 print("b2 = " + str(parameters[“b2”]))
8
----> 9 nn_model_test(nn_model)
~/work/release/W3A1/public_tests.py in nn_model_test(target)
273 assert output[“b2”].shape == expected_output[“b2”].shape, f"Wrong shape for b2."
274
→ 275 assert np.allclose(output[“W1”], expected_output[“W1”]), “Wrong values for W1”
276 assert np.allclose(output[“b1”], expected_output[“b1”]), “Wrong values for b1”
277 assert np.allclose(output[“W2”], expected_output[“W2”]), “Wrong values for W2”
AssertionError: Wrong values for W1
When I asked friend who also does this course, I found I had the same code, but then she rerun her code (which had previously not raised an error) and for some reason it started raising an error for her too.
Rather confused, and wondering if something on the system changed to give the error by mistake?