Error Message: 'x_train' not defined

{code removed by mentor}

Hello Everyone,
I encountered an error message when running my code for the graded assignment. Although I have not touched the previous code, there seems to be an error on the x training values.
If anyone can recommend some solutions, I would highly appreciate it.

Thanks!

Hello @kjemal

x_train was defined in the code cell under section 3. The error is because that code cell was not run beforehand.

Everytime we re-open a lab or after we restart the kernel of the lab, we need to run the notebook from top to bottom to avoid error like that.

Raymond

PS: I have removed your code since it violates the honor code to share it. Next time, please just share the error traceback, such as this part of your original screenshot ;):