Why does log loss punish confident mistakes?
For a single example, log loss is the negative natural logarithm of the predicted probability of the observed class.
log_loss in practice
If A occurs, assigning it 0.5 costs about 0.69, whereas assigning 0.01 costs about 4.61. A saved class label alone loses that distinction.
中文
对数损失为什么重罚自信的错误?
单个样本的对数损失等于真实类别预测概率的负自然对数。
log_loss 应用实例
真实答案是 A,给 A 0.5 的损失约为 0.69,给 0.01 则约为 4.61。只保存最终类别会丢失这层差别。