I am doing calculating db as
{moderator edit - solution code removed}
what do you mean by calculator app?
It seems to be running 4 times
m is:4
The shape of W is: (3, 5)
The shape of b is: (3, 1)
The shape of A_prev is: (5, 4)
The shape of dW is: (3, 5)
The shape of db is: (3, 1)
The shape of dA_prev is: (5, 4)
dA_prev: [[-1.15171336 0.06718465 -0.3204696 2.09812712]
[ 0.60345879 -3.72508701 5.81700741 -3.84326836]
[-0.4319552 -1.30987417 1.72354705 0.05070578]
[-0.38981415 0.60811244 -1.25938424 1.47191593]
[-2.52214926 2.67882552 -0.67947465 1.48119548]]
dW: [[ 0.07313866 -0.0976715 -0.87585828 0.73763362 0.00785716]
[ 0.85508818 0.37530413 -0.59912655 0.71278189 -0.58931808]
[ 0.97913304 -0.24376494 -0.08839671 0.55151192 -0.10290907]]
db: [[-0.58855142]
[-0.4525262 ]
[-0.52836405]]
m is:4
The shape of W is: (3, 5)
The shape of b is: (3, 1)
The shape of A_prev is: (5, 4)
The shape of dW is: (3, 5)
The shape of db is: (3, 1)
The shape of dA_prev is: (5, 4)
m is:4
The shape of W is: (3, 5)
The shape of b is: (3, 1)
The shape of A_prev is: (5, 4)
The shape of dW is: (3, 5)
The shape of db is: (3, 1)
The shape of dA_prev is: (5, 4)
m is:4
The shape of W is: (3, 5)
The shape of b is: (3, 1)
The shape of A_prev is: (5, 4)
The shape of dW is: (3, 5)
The shape of db is: (3, 1)
The shape of dA_prev is: (5, 4)
Error: Wrong output for variable 2.
2 Tests passed
1 Tests failed
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-23-3427f65cb756> in <module>
6 print("db: " + str(t_db))
7
----> 8 linear_backward_test(linear_backward)
~/work/release/W4A1/public_tests.py in linear_backward_test(target)
395 ]
396
--> 397 multiple_test(test_cases, target)
398
399
~/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_backward. Check your equations and avoid using global variables inside the function.