Hi
I am running several codes for “Building_your_Deep_Neural_Network_Step_by_Step” for the " Neural Networks and Deep Learning" course is just keep getting the error of not all the tests are passed as copied below:
With sigmoid: dA_prev = [[ 0.01755433 -0.14094251]
[ 0.01508293 -0.12109981]
[-0.00915014 0.07346581]]
With sigmoid: dW = [[ 0.12698275 -0.04119062 -0.08712197]]
With sigmoid: db = [[0.05831463]]
With relu: dA_prev = [[ 0.44090989 0. ]
[ 0.37883606 0. ]
[-0.2298228 0. ]]
With relu: dW = [[ 0.44513824 0.37371418 -0.10478989]]
With relu: db = [[-0.20837892]]
Error: Wrong output with sigmoid activation for variable 0.
Error: Wrong output with sigmoid activation for variable 1.
Error: Wrong output with sigmoid activation for variable 2.
5 Tests passed
1 Tests failed
AssertionError Traceback (most recent call last)
in
11 print("With relu: db = " + str(t_db))
12
—> 13 linear_activation_backward_test(linear_activation_backward)
~/work/release/W4A1/public_tests.py in linear_activation_backward_test(target)
467 ]
468
→ 469 multiple_test(test_cases, target)
470
471
~/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 linear_activation_backward. Check your equations and avoid using global variables inside the function.
Anyone has the same experience how to fix it? The outputs are the same as expected though.
Thanks
Faeze