avatar

Catalog
损失函数

均方误差

在线性回归问题中,常常使用MSE(Mean Squared Error)即均方误差作为loss函数,比如:

这里的m表示m个样本的,loss为m个样本的loss均值。
MSE在线性回归问题中比较好用,那么在逻辑分类问题中还是如此么?

交叉熵

-\sum_{i=1}^{n}y_ilog(\hat{y_i}) \tag{2.1}

上式为一张样本的loss计算方法,n代表着n种类别。

Author: kim yhow
Link: http://yoursite.com/2019/02/24/损失函数/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Donate
  • 微信
    微信
  • 支付寶
    支付寶