相关文章推荐

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.

 
推荐文章