- Deep Learning Quick Reference
- Mike Bernico
- 152字
- 2021-06-24 18:40:09
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.
推薦閱讀
- 智能傳感器技術(shù)與應(yīng)用
- 控制與決策系統(tǒng)仿真
- 并行數(shù)據(jù)挖掘及性能優(yōu)化:關(guān)聯(lián)規(guī)則與數(shù)據(jù)相關(guān)性分析
- Visual FoxPro 6.0數(shù)據(jù)庫與程序設(shè)計(jì)
- Visual C# 2008開發(fā)技術(shù)實(shí)例詳解
- 機(jī)器學(xué)習(xí)與大數(shù)據(jù)技術(shù)
- 計(jì)算機(jī)網(wǎng)絡(luò)應(yīng)用基礎(chǔ)
- Kubernetes for Developers
- Storm應(yīng)用實(shí)踐:實(shí)時(shí)事務(wù)處理之策略
- INSTANT Drools Starter
- Visual FoxPro數(shù)據(jù)庫基礎(chǔ)及應(yīng)用
- Cloud Security Automation
- Citrix? XenDesktop? 7 Cookbook
- Mastering Geospatial Analysis with Python
- Python文本分析