1.单层神经网络
2.多层神经网络
3.MLP的3个步骤
MLP learning procedure in three simple steps:
- Starting at the input layer, we forward propagate the patterns of the training data through the network to generate an output.
- Based on the network's output, we calculate the error that we want to minimize using a cost function that we will describe later.
- We backpropagate the error, find its derivative with respect to each weight inthe network, and update the model.
前向算法
隐藏层中的每个单元链接所有输入层,计算隐藏层的激活单元
输出也是同样的方法
4.Obtaining the MNIST dataset
获取60000个训练集和10000个测试集,将原始的数据转换成784(28*28)像素的数据。
# -*- coding: utf-8 -*-
"""