C1_W2_Linear_Regression Practice Lab Name Error

Hi,

All my solutions are correct and I see all tests passed but at the time of submission I am getting -Can’t compile the student’s code. Error: NameError(“name ‘initial_w’ is not defined”). These are the pre-filled text which were automatically there.

Please help.
Thank you!

It appears that your code is using a variable name that is not defined in the grader’s data set.

Check your code, and (for example) do not use any global variables that may only exist in your notebook.

Hi Tmosh, thanks for replying. I am no longer using any variables of that name which is giving the error but its still the same error. Should I share my notebook?
Thank you!

Check whether you renamed the notebook file. The grader always uses the file with the original name, regardless of the name of the notebook you have open when you click on the Submit button.