- Mastering Machine Learning Algorithms
- Giuseppe Bonaccorso
- 84字
- 2021-06-25 22:07:28
Huber cost function
As explained, mean squared error isn't robust to outliers, because it's always quadratic independently of the distance between actual value and prediction. To overcome this problem, it's possible to employ the Huber cost function, which is based on threshold tH, so that for distances less than tH, its behavior is quadratic, while for a distance greater than tH, it becomes linear, reducing the entity of the error and, therefore, the relative importance of the outliers.
The analytical expression is: