Course5 week1 assignment2

I have got problems with the sample function I am not getting the expected outputs

can anyone help, please? just a hint of where I might be going wrong.

Were you able to fix this problem?

Could you show screenshot of code? To me the parameters b and by got some issues, since they are 2d arrays, they will affect your a,z,y. I tried b.ravel() to fix the issue.