Hi, thanks for the swift reply! So, I’ll try to explain as follows:
- In particular, I was referencing the issue mentioned on this comment - Week 3 assignment: bug in the test - #11 by dave_merit. Thanks for pointing out that there are more things here and to be more specific.
- So based on that and what I saw on public_testsV2 + the third exercise “Initialize the parameters” I see that there is maybe a mismatch with the test cases causing it to fail. Initially, I started with the same error mentioned in the previous point → Wrong dimensions for W1.
- After that I started toying around with the test cases and managed to get the following → Wrong values for W1
W1 = [[0.00435995 0.00025926]
[0.00549662 0.004353221
[0.00420368 0.003303351
[0.00204649 0.00619271]]
b1 = [[0.1
10.1
[0.]
10.11
W2 = [[0.00299655 0.00266827 0.00621134 0.0052914211
b2 = [[0.1]
n_x 2 n_h 4 n_y 1
[[0.00299655 0.00266827 0.00621134 0.0052914211
AssertionError
<ipython-input-23-0eb4c3a6d62e> in ‹module>
8 print ("b2 = " + str(parameters ["b2"]) )|
9
Traceback (most recent call last)
-> 10 initialize_parameters_test(initialize_parameters)
-/work/release/W3A1/public_tests.py in initialize_parameters_test(target)
assert parameters ["b2"] shape == expected_output ["b2"].shape, f"Wrong shape for b2."
54
-—-> 55|
56
57
assert np-allclose(parameters ["Wl"], expected_output ["W1"]), "Wrong values for Wl" assert np.allclose(parameters["b1"], expected_output ["b1"]), "Wrong values for bl" assert np.allclose(parameters("W2"], expected_output ["W2"]), "Wrong values for W2"|
- Hint: Maybe with the provided notebook ID you can see also what I mean because I’ve changed a bit some values of the test that specific test case
initialize_parameters_test
.