Tensorflow笔记二

MNIST手写体识别

(Mixed National Institute of Standards and Technology database)的28*28字符识别共0-9类。

在ipython命令行后者spyder中编译下面代码:

  from tensorflow.examples.tutorials.mnist import input_data  #加载MNIST数据集

  mnist = input_data.read_data_sets("MNIST_data",one_hot = True)

print(mnist.train.images.shape, minst.train.labels.shape)  #训练集个数

print(mnist.test.images.shape,minst.test.labels.shape)  #测试集个数

print(mnist.validation.image.shape,mnist.validation.labels.shape)  #验证集个数及样本标签的标记信息

 

posted @ 2018-07-30 21:54  JimmyChoo  阅读(130)  评论(0编辑  收藏  举报