标签:image coding example inpu tor ali 测试数据 auth tutorial
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 1 08:14:30 2017
@author: myhaspl@myhaspl.com
"""
from tensorflow.examples.tutorials.mnist import input_data
mnist=input_data.read_data_sets("mnist_datat/",one_hot=True)
print "训练数据大小:",mnist.train.num_examples
print "验证数据大小:",mnist.validation.num_examples
print "测试数据大小:",mnist.test.num_examples
print "训练数据:",mnist.train.images[0]
print "训练数据:",mnist.train.labels[0]
print "训练数据:",mnist.train.images[1]
print "训练数据:",mnist.train.labels[1]
标签:image coding example inpu tor ali 测试数据 auth tutorial
原文地址:http://blog.51cto.com/13959448/2338463