Course 1 Week 3; Logistic regression assignment

May Day! May Day!
Please can someone assist me with the logistic regression assignment in week 3. I received this feedback " Cell #11. Can’t compile the student’s code. Error: NameError (“name ‘x’ is not defined”)"

I think you have deleted or edited some of the pre-written code. Here is the guide to get a fresh copy of your assignment and do your code again, without changing any other code.

I have not looked into this specifically, but are you sure that the variable name ‘x’ is correct? Maybe it should be ‘X’?

Hi, when it autogrades my assignment. It has the following error message: ell #20. Can’t compile the student’s code. Error: TypeError(“unsupported operand type(s) for +=: ‘NoneType’ and ‘NoneType’”)

All code works and has passed the test in the lab.

Here is my lab ID:

Did you complete the entire notebook (with no errors and all of the expected results match) before submitting it for grading?


One more basic item to check:
Have you changed the original name of your notebook ipynb file?

yes I did change it when I saved it.

ahhhh, now I see it is submitting the original assignment and not the current workbook I have completed. how do I save my current workbook as the original name

I fixed it. Thank so much for addressing the original problem of the file name. Thank you so much