Error in Week 3 C1_W3_Logistic_Regression

In the final C1_W3_Logistic_Regression code exercise, all code looks OK (All Tests Passed!)

However I get an indentation issue. All code has been triple check and indentation looks ok, error is:

Cell #UNQ_C3. Can’t compile the student’s code. Error: IndentationError(‘unindent does not match any outer indentation level’, (‘/tmp/student_solution_cells/’, 38, 22, ’ for i in range(m):\n’))

Sounds like in the 13th code cell in the notebook, you have some whitespace hiding where it shouldn’t be. Maybe you have a space and a tab adjacent each other.

Looks like the “for i in range(m)” statement there starts with a space. That’s maybe it.

Thanks for your kind reply. I’ve removed all whitespace thoroughly (4 spaces) and I still get the same issue. Can you help?

(edited this reply…)

1 Like

Check whether you renamed the notebook file.

You can’t rename a notebook and then submit it. The grader always uses the original notebook name, regardless of what notebook you have open when you click the “Submit” button.

1 Like

Also, did you ever download the notebook to your local computer, edit it there, and then upload it back to Coursera Labs?

No I didn’t. But thanks anyway.

That worked! Thanks so much, such a dumb mistake, have been pulling my hair out… thank you!!!