官术网_书友最值得收藏!

Defining our cost function

For regression tasks, the most common cost functions are Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE). I'll be using MAE here. It is defined as follows:

Very simply, MAE is the average unsigned error for all examples in the dataset. It's very similar to RMSE; however, we use the absolute value of the difference between y and instead of the square root of the average squared error:

You might be wondering how MAE differs from the more familiar RMSE. In cases where the error is evenly distributed across the dataset, RMSE and MAE will be equal. In cases where there are very large outliers in a dataset, RMSE will be much larger than MAE. Your choice of cost function should be appropriate to your use case. In regard to interpretability, MAE is more interpretable than RMSE as it's the actual average error.
主站蜘蛛池模板: 喀喇| 中牟县| 贺州市| 河曲县| 辛集市| 报价| 长治市| 大埔区| 浏阳市| 雅安市| 天峨县| 连云港市| 商城县| 潍坊市| 长治县| 九寨沟县| 鄢陵县| 仙游县| 桓仁| 都昌县| 高碑店市| 大新县| 嫩江县| 施甸县| 鄂托克前旗| 冕宁县| 新乐市| 偏关县| 洪泽县| 崇义县| 漯河市| 许昌市| 镇沅| 仙游县| 安徽省| 龙口市| 光泽县| 利川市| 越西县| 布拖县| 江津市|