I’m trying to solve this issue for like hours.
{moderator edit - solution code removed}
it gives me the right results
dA_mean = 1.457943469708148
dW_mean = 1.7519334429380524
db_mean = 7.882856704391539
but it gave me this error and I can’t find why
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-66-3575597a0654> in <module>
21 assert dA.shape == (10, 4, 4, 3), f"Wrong shape for dA {dA.shape} != (10, 4, 4, 3)"
22 assert dW.shape == (2, 2, 3, 8), f"Wrong shape for dW {dW.shape} != (2, 2, 3, 8)"
---> 23 assert db.shape == (1, 1, 1, 8), f"Wrong shape for db {db.shape} != (1, 1, 1, 8)"
24 assert np.isclose(np.mean(dA), 1.4524377), "Wrong values for dA"
25 assert np.isclose(np.mean(dW), 1.7269914), "Wrong values for dW"
AssertionError: Wrong shape for db (2, 2, 3, 8) != (1, 1, 1, 8)