Week 3 practice lab: logistic regression: compute_gradient


Kindly remove the code image from your post it is against community guideline to share your code on public post.

Your code for f_wb is incorrect. You have edited the template code as the template code was defined as
for i in range (m) and not (0,m)

These assignments are sensitive to the template code given and if you change, you will not pass the assignment.

Kindly use the template code given as before at the start of the assignment.

although your dj_db codes are correct but because your code for z_wb and f_wb is incorrect, you have got this error log.

Correct z_wb and f_wb codes. your other codes are correct and kindly remove the image code from your post.

These are the link for your referral

Hope it helps

Keep Learning!!!