1. 程式人生 > >損失函式(loss function)

損失函式(loss function)

通常而言,損失函式由損失項(loss term)和正則項(regularization term)組成。發現一份不錯的介紹資料:
一、損失項
  • 對迴歸問題,常用的有:平方損失(for linear regression),絕對值損失;
  • 對分類問題,常用的有:hinge loss(for soft margin SVM),log loss(for logistic regression)。
說明:
  • 對hinge loss,又可以細分出hinge loss(或簡稱L1 loss)和squared hinge loss(或簡稱L2 loss)。國立臺灣大學的Chih-Jen Lin老師釋出的Liblinear就實現了這2種hinge loss。L1 loss和L2 loss與下面的
    regularization是不同的,注意區分開。
二、正則項
  • 常用的有L1-regularization和L2-regularization。上面列的那個資料對此還有詳細的總結。

補充