Hi @nandita_singh, you can read from the assertion error that db is expected to be a scalar, a float. It currently is not. if you look at your calculations, both dw and db are using np.dot so are returning an array. So indeed, you need something different then np.dot for the calculation of db. What would that be?
Note that it is policy not to share code solutions on our platform so I removed them.
That’s such a silly one. I am so sorry to be a stupid one. In my head I was calculating L2 loss.Thanks for being kind to my attention while it was actually lying there in the plain sight all along.
Great @nandita_singh, and rest assured, there are no such things as silly mistakes. When coding with matrices, and matrix operations, you sometimes can look for hours for a tiny error that you overlook, at least I do as well… Good to see that you fixed it, enjoy the rest of the course!
Yes I did. Exercise 8 gave me above errors but later calculated cost after iterations all fine. But when i go ahead and run “plot running curve with costs” , I get attached error.
I am definitely missing on something just don’t know what exactly.