Error Course 1 Week 3 Final Assignment

Hi There I am getting some serious errors with the practice lab in Week 3 of the supervised learning. The section for Gradient for logistic regression is giving me a lot of issues. Here is my code. Please help.

{mentor edit: code removed}

Please don’t post your code on the forum. That’s not allowed by the Code of Conduct. If a mentor needs to see your code, we’ll contact you with instructions.

Looks to me like you’re using the wrong initial value for z_wb, and you end up adding ‘b’ twice.

My apologies TMosh. I won’t do that again. I changed the b to zero and it worked. Thank you for your help.