C1_W3_Logistic_Regression : AssertionError: Wrong output. Expected: 2.15510667 got: 1.7461071120044385

Hi, I got stuck. As soon as my problem solved, I will continue to finish this assignment. Need help. Thanks in advance.

Welcome to the community.

Please re-consider where you should reset z_wb. Since z_wb needs to be calculated for each training example, it needs to be inside for loop for ā€œiā€. Otherwise, z_wb will be accumulated.

The first test set both weight and bias to 0. So, it seems to be successful, but, actually not.

By the way, posting your code is not recommended. Please remove it.