- 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.
推薦閱讀
- 我的J2EE成功之路
- Hadoop 2.x Administration Cookbook
- ServiceNow Cookbook
- 大數(shù)據(jù)技術(shù)入門(第2版)
- 最后一個(gè)人類
- 計(jì)算機(jī)網(wǎng)絡(luò)技術(shù)實(shí)訓(xùn)
- 讓每張照片都成為佳作的Photoshop后期技法
- Windows 7寶典
- 西門子變頻器技術(shù)入門及實(shí)踐
- Unity Multiplayer Games
- Working with Linux:Quick Hacks for the Command Line
- 會(huì)聲會(huì)影X4中文版從入門到精通
- 工業(yè)機(jī)器人集成應(yīng)用
- 30天學(xué)通Java Web項(xiàng)目案例開發(fā)
- 白話機(jī)器學(xué)習(xí)算法