Created
July 9, 2017 17:16
-
-
Save AhnSeongHyun/b7d6c74f8a509fcacfabedadca5bb3e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from tensorflow.examples.tutorials.mnist import input_data | |
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) | |
for key in ['train', 'test', 'validation']: | |
print("mnist.%s :" % key) | |
minst_dataset= getattr(mnist, key) | |
print("\tnum_examples : %d" % minst_dataset.num_examples) | |
print("\timages count : %d" % len(minst_dataset.images)) | |
print("\tlabels count : %d" % len(minst_dataset.labels)) | |
print("\timages[0] len : %d" % len(minst_dataset.images[0])) | |
print("\tlabels[0] len : %d" % len(minst_dataset.labels[0])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment