- 首先准备训练和测试数据:http://yann.lecun.com/exdb/mnist/
train-images-idx3-ubyte.gz: training set images (9912422 bytes) 55000张图片
train-labels-idx1-ubyte.gz: training set labels (28881 bytes)
t10k-images-idx3-ubyte.gz: test set images (1648877 bytes) 10000张图片
t10k-labels-idx1-ubyte.gz: test set labels (4542 bytes)
保存在MNIST_data文件夹中
每一张图片包含28像素X28像素。我们可以用一个数字数组来表示这张图片: