参数 x 是图像数据,t 是正确解标签(后面 3 个方法的参数也一样) accuracy(self, x, t) 计算识别精度 numerical_gradient(self, x, t) 计算权重参数的梯度 gradient(self, x, t) 计算权重参数的梯度。