For the function propagate - I am getting following error - also my output is different from expected output - not sure what I am missing here
here is the code - I am using
def propagate(w, b, X, Y):
{Moderator Edit: Code Removed}
cost = np.squeeze(np.array(cost))
Hello,
I think you get the wrong fromula for dW and db. They are

Please note that you are not allowed to share your code. I’ve deleted it. As Phuc highlighted, your dW and db are wrong. Use the correct formula which he shared in his reply.
Best,
Saif.
1 Like
Thanks - I got the test passed. Removed the abs part and it worked
1 Like