W2 assignment Advanced learning algorithm


What are the errors.I was not able to understand.

The error seems to be at the multiplication of matrices W and a_in. In order to acomplish that you need sizes of this nature: If w of m×n size then a_in shoulb be of nxy where y is any number >=1.

Looks to me like your code creates a variable ‘w’ and then uses ‘W’ in the next line. Is that what you intended?

1 Like

W and a_in have different dimensions and do not match. One is (2,3) and the other is (2,0)