softmax可以把数值转换为对应在0-1之间的概率。
def softmax(x): return np.exp(x) / np.sum(np.exp(x), axis=0)
正则化可以使训练速度提升,优化梯度下降的效果。
正则化可以参考一些函数直接进行。
https://stackoverflow.com/questions/11854847/how-can-i-display-an-image-from-a-file-in-jupyter-notebook