Sigmoid 交叉熵损失函数(Sigmoid Cross Entropy Loss)
官方: loss ,
输入:
形状: 得分 , 这个层使用 sigmoid 函数 映射到概率分布
形状: 标签
输出:
- 形状: 计算公式:
应用场景:
预测目标概率分布
bottom | input Blob vector (length 2)
|
top | output Blob vector (length 1)
|
Computes the sigmoid cross-entropy loss error gradient w.r.t. the predictions.
Gradients cannot be computed with respect to the target inputs (bottom[1]), so this method ignores bottom[1] and requires !propagate_down[1], crashing if propagate_down[1] is set.
-
Parameters
-
top output Blob vector (length 1), providing the error gradient with respect to the outputs propagate_down see Layer::Backward. propagate_down[1] must be false as gradient computation with respect to the targets is not implemented. bottom input Blob vector (length 2) - the predictions ; Backward computes diff
- the labels – ignored as we can't compute their error gradients