损失函数为Cross entropy的手写数字识别神经网络代码与实现
损失函数为cross entropy , weights,biases的初始化为改进的初始化 import numpy as np import random class Network2(object): def _init__(self, sizes, cost): self.layernumber = len(sizes) self.sizes = len(sizes) self.defualt_weights() self.cost = cost def defualt_weights(self):