test02.py 639 B

123456789101112131415161718
  1. import tensorflow.examples.tutorials.mnist.input_data as ipt
  2. import tensorflow.contrib.learn.python.learn.datasets.base as base
  3. import tensorflow.models.image.cifar10.cifar10 as cifar10
  4. iris_data, iris_label = base.load_iris()
  5. house_data, house_label = base.load_boston()
  6. cifar10.maybe_download_and_extract()
  7. images, labels = cifar10.distorted_inputs()
  8. mnist = ipt.read_data_sets("MNIST_data/", one_hot=True)
  9. print(mnist.train.images.shape)
  10. print(mnist.train.labels.shape)
  11. print(mnist.validation.images.shape)
  12. print(mnist.validation.labels.shape)
  13. print(mnist.test.images.shape)
  14. print(mnist.test.labels.shape)
  15. print(images)
  16. print(labels)