import tensorflow as tf
import tensorflowvisu
from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets

tf.set_random_seed(0)

mnist = read_data_sets("D:/GoogleDownload/machine learning/MNIST/", one_hot=True, reshape=False, validation_size=0)

附上原图

MNIST数据集读取

图中画红线部分为下载的MNIST数据集的路径,是整体路径,不是单个文件路径(浪费了我好久的时间),在路径末尾加上“/”

MNIST数据集读取




相关文章: