Machine Learning Fundamentals · 免费预览
交叉熵及其梯度
Softmax 交叉熵是正确类别的负对数似然,其关于分数的梯度与线性回归的梯度形状相同:特征向量乘以一个残差。
1. From probability to loss
From probability to loss
2. The simplified form
The simplified form
3. The gradient
The gradient
4. What the loss charges
A three-class model assigns probability to the true class, whose one-hot label is . The per-example loss is . The value of that loss is closest to which number?
5. The gradient at the true class
A model's softmax output for the true class is with label . The gradient component equals ____.