一、说明
最近也是刚开始学习tensorflow,一步一步来,把刚写完的mnist代码贴上来,以备不时之需吧。
这个项目是基于全连接神经网络的,两个隐藏层(可扩展,已经封装)784->256->49->10,支持中断后继续训练
二、测试环境
- python 版本:3.6
- tensorflow版本:1.6.0
- 系统环境:windows 10 64位 + Visual Studio code
三、资料下载
- mnist训练集官网下载:http://yann.lecun.com/exdb/mnist/
- 项目代码(内含mnist训练集):链接:https://pan.baidu.com/s/1ESuQ_JcXxbqIyTUF-W61Cw 提取码:ylcj
四、源代码
1 | import tensorflow as tf |