C1_W2_Linear_Regression - Exercise 1

Hi, I’m having problems with the output code. I’m getting an error that x_train is not defined. I don’t know enough to debug this issue. What should I do?

Check if your code uses the variables that are passed as function parameters.

Do not use any notebook global variables.

1 Like

Make sure that you ran the jupyter notebook code area where x_train variable is written by pressing shift+enter.

1 Like

Awesome, thank you! That worked.

1 Like