Natural Language Processing · 免费预览
反向传播与训练
计算图、反向运行的链式法则、激活函数导数、输出端的交叉熵、梯度检验,以及一个训练好的 XOR 网络。
1. Backpropagation and Training
Backpropagation and Training
2. Backprop for a two-layer network
Backprop for a two-layer network
3. Backward differentiation in NumPy
Backward differentiation in NumPy
4. One backward step
On the graph , , with values , , , compute by the chain rule. Answer as a decimal.
5. Sigmoid derivative at a point
Compute at , using , and round to three decimals.
6. Through the ReLU gate
The output error is , the output weight feeding hidden unit 1 is , and that hidden unit received pre-activation . Compute as a decimal.
7. The error at the output
For a sigmoid output unit with cross-entropy loss, what is the error signal at the output logit, and why is it so clean?
8. Certifying the backward pass
A hand-written backward pass produces analytic gradients. Which procedure validates them, and what outcome should it produce?