Hi for the last assignment submission for week 3 of this course, I got all the correct outputs for my code, but when I submit my file there’s an error that says “Cell #9. Can’t compile the student’s code. Error: NameError(“name ‘x’ is not defined”)” when i went back to debug I couldn’t find any undefined x at all…I’ll need some help with this thanks
Hello @isabella2,
The grader looks at the notebook file with the right name. First, make sure the notebook that you submitted is named as “C1_W3_Logistic_Regression.ipynb”. Then, to confirm the code is error-free before another submission, restart the kernel and run all the cells.
Cheers,
Raymond
Tip.
Check for upper and lower case letters.
Were you able to resolve the issue? I am having the same problem, and there is no issue with capitalization
@ktargows, please post a screen capture image that shows exactly the issue you are seeing.
Don’t post your code, just any error messages.
You have incorrect indentation.
See how the line with the comment “# Add the corresponding term to z_wb” is in a red font?
That means you copied the code from the Hint area, but you didn’t fix the indentation. The code in the hints isn’t formatted correctly and you can’t just copy it.
Check the entire function, and fix any areas that have code marked in red.