values are not matching to expected values
I checked for hard coding found none.
dA0 = [[ 0. 0.12853824]
[ 0. -0.08041233]
[ 0. -0.07888325]
[ 0. -0.18221184]]
dA1 = [[-0.41311681 -0.10826111]
[ 0.45350638 0.11884557]
[-0.0532252 -0.01394816]]
dW1 = [[0.10087189 0.0192033 0.03393989 0.02583208]
[0. 0. 0. 0. ]
[0.01299615 0.00247412 0.00437275 0.00332816]]
dW2 = [[ 0.33288923 -0.16886813 -0.53686918]]
db1 = [[-0.05413055]
[ 0. ]
[-0.00697408]]
db2 = [[0.25460995]]
Error: Wrong output for variable dA1.
Error: Wrong output for variable dW2.
Error: Wrong output for variable db2.
Error: Wrong output for variable dA0.
Error: Wrong output for variable dW1.
Error: Wrong output for variable db1.
2 Tests passed
1 Tests failed
AssertionError Traceback (most recent call last)
in
9 print("db2 = " + str(grads[‘db2’]))
10
—> 11 L_model_backward_test(L_model_backward)
~/work/release/W4A1/public_tests.py in L_model_backward_test(target)
442 ]
443
→ 444 multiple_test(test_cases, target)
445
446 def update_parameters_test(target):
~/work/release/W4A1/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 L_model_backward. Check your equations and avoid using global variables inside the function.