本来想来个综合的大程序,刚写了点发现东西较多,那就一点点整吧,东西太杂容易懵圈。。
在前几篇中的手写数字识别中一开始都有这么两句代码:
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets('./mnist', one_hot=True)
先来看看具体其真实面目,找到其github路径:
这是一个12w+的项目:
其代码很少:
"""Functions for downloading and reading MNIST data."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=unused-import
import gzip
import os
import tempfile
import numpy
from six.moves import urllib
f