Course 1 week 2 ass. section 4.3 Error in dw

Content deleted by moderator

cost = np.squeeze(np.array(cost))

grads = {"dw": dw,
         "db": db}

return grads, cost

But I am getting error in computing dw, I am not sure where is the mistake. Please help me.

Hi, @Madhu_Gupta. Please be aware that it is against the honor code to post your work on the Discourse forum. A clip of the “Traceback” (the sequence of error messages thrown by your code) is permitted, and encouraged. Please try again.

It is also useful for the community to hear what you think may be wrong and some of the things that you have tried to fix the problem. Thanks!