Week 2 Programming Assignment: Logistic Regression with a Neural Network Mindset, Exercise 5 - propagate

I am getting this error:-


{moderator edit - solution code removed}

I don’t understand how I am supposed to get dw as vector 2,1 when all my inputs are either 2,3(X) or 1,3(A,Y)
I am getting dw of shape 2,3

1 Like

Your dw implementation is wrong. Check the formula again. It not transpose the Y.

Why you are making more calculations for A when the sigmoid function is given to you? Just call it. And, you don’t need to use sum with dot.

PS: Sharing your code is not allowed by the community code of conduct. So, avoid sharing it.