Course 1 week 3 excercise 3, error with global value

Hello, I am facing the error on initialize parameter in week3 excercise. The error are shown as follow. What strange is that the output is the same as the expected, but the notebook still show errors.

Expected output

W1 = [[-0.00416758 -0.00056267]
 [-0.02136196  0.01640271]
 [-0.01793436 -0.00841747]
 [ 0.00502881 -0.01245288]]
b1 = [[0.]
 [0.]
 [0.]
 [0.]]
W2 = [[-0.01057952 -0.00909008  0.00551454  0.02292208]]
b2 = [[0.]]

W1 = [[-0.00416758 -0.00056267]
[-0.02136196 0.01640271]
[-0.01793436 -0.00841747]
[ 0.00502881 -0.01245288]]
b1 = [[0.]
[0.]
[0.]
[0.]]
W2 = [[-0.01057952 -0.00909008 0.00551454 0.02292208]]
b2 = [[0.]]
Error: Wrong shape for variable W1.
Error: Wrong shape for variable b1.
Error: Wrong shape for variable W2.
Error: Wrong shape for variable b2.
Error: Wrong output for variable W1.
Error: Wrong output for variable b1.
Error: Wrong output for variable W2.
Error: Wrong output for variable b2.
1 Tests passed
2 Tests failed

AssertionError Traceback (most recent call last)
in
7 print("b2 = " + str(parameters[“b2”]))
8
----> 9 initialize_parameters_test(initialize_parameters)

~/work/release/W3A1/public_tests.py in initialize_parameters_test(target)
64 ]
65
—> 66 multiple_test(test_cases, target)
67
68 def forward_propagation_test(target):

~/work/release/W3A1/test_utils.py in multiple_test(test_cases, target)
140 print(’\033[92m’, success," Tests passed")
141 print(’\033[91m’, len(test_cases) - success, " Tests failed")
→ 142 raise AssertionError(“Not all tests were passed for {}. Check your equations and avoid using global variables inside the function.”.format(target.name))
143

AssertionError: Not all tests were passed for initialize_parameters. Check your equations and avoid using global variables inside the function.

Hi @AndrewXue, the subsequent tests are not visible but from the error message it seems that your implementation is failing to pass in a situation where W and b are created in a higher dimension (probably > 1) in some dimensions. Maybe you can find something in your code that influence that.

I got it. Thank you.