一:MNIST数据集 下载地址 MNIST是一个包含很多手写数字图片的数据集,一共4个二进制压缩文件 分别是test set images,test set labels,training set images,training set labels training set包括60000个样本,test set包括10000个样本. test set中前5000个样本来自原始的NISTtraining set,后5000个样本来自原始的NIST test set,因此,前5000个样本比…
本文摘自Michael Nielsen的Neural Network and Deep Learning,该书的github网址为:https://github.com/mnielsen/neural-networks-and-deep-learning """ network.py ~~~~~~~~~~ A module to implement the stochastic gradient descent learning algorithm for a feedfor…
声明:本文章为阅读书籍<Python神经网络编程>而来,代码与书中略有差异,书籍封面: 源码 若要本地运行,请更改源码中图片与数据集的位置,环境为 Python3.6x. 1 import numpy as np 2 import scipy.special as ss 3 import matplotlib.pyplot as plt 4 import imageio as im 5 import glob as gl 6 7 8 class NeuralNetwork: 9 # initi…