C1 W3 Logistic Regression - AssertionError - Compute cost function

Hi, I have an error in my compute_cost function in the C1_W3_Logistic_Regression exercise within week 3 of the Supervised Machine Learning: Regression and Classification course by Andrew Ng.

Since i cannot find the issue, can i share the code privately with one of you helpful mentors to help debug?

Please start by posting a screen capture image that shows the error (and the entire error context).

If the error message includes some of your code, that’s OK.

thanks

this is the first problem:

Then also:

i followed all the hints so i am confused why the hint code is not working

ah i fixed it now, no worries

1 Like

Indentation? That’s often the issue.

nah i used the hints again and it fixed it. i must have modified the code somehow. This ticket can be closed

1 Like