添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

x_train is defined in the second code cell of the lab.

It should look like this:

# load the dataset
x_train, y_train = load_data()

Also remember when working in the Coursera environment the Jupyter notebook will shutdown automatically if you leave it alone for too long or if you close the site. When this happens you need to rerun the previous cells from the beginning before proceeding.