声明:本文章为阅读书籍<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…