#C1-w2: Practice Lab: Linear Regression: Programming Assignment: Name Error

Do you know how to debug this error?

Every time you open a notebook, you have to run all of the cells starting from the top. That is how the environment is created and the assets are loaded.

1 Like

me to but name error: name ‘x_train’ is not defined?

Did you run all of the cells after opening the notebook?

Because x_train is defined by running the cell in section “3 - Dataset”

Please post a screen capture image that shows the entire error message - but do not include your code.