Problem 3 with Supervised Machine Learning week 3 in lab C1_W3_Logistic_Regression

In Supervised Machine Learning week 3 in lab C1_W3_Logistic_Regression, in cell 32 where I define the predict function exactly as you describe it, and it passes the tests, but when it actually tries to predict the training set accuracy, it only yields 65% as opposed to 92% I have attached a screenshot below, and also attached my Jupiter Notebook


{moderator edit: code removed}

Perhaps there is problem with the code that is generating the w and b values. That traces back to your compute_gradient() function.

Please don’t share your code on the forum, that’s not allowed by the community standards.

Well, how am I supposed to figure out what is going wrong?

Hi, as I replied in the other posting, I implemented the code EXACTLY as directed in the hints. And my code PASSED the tests. So the problem is not in my code, there is something in their implementation that is wrong.

1 Like

I’ll reply on your other thread.