08 - regression metrics

ei=yiy^i
MAE

  • the mean absolute error (MAE) takes the absolute value of each error:
MAE+1ni=1n|yiy^i|

MSE

  • the mean squared error (MSE) takes the squares of the errors:
MSE=1ni=1n(yiy^i)2

RMSE

the root mean square error (RMSE) takes the square root of MSE:

RMSE=1ni(yiy^i)2
R-squared

R2 measures how better a model is than simply predicting the mean:

R2=1i(yiy^i)2i(yiy¯i)2

loss function vs evaluation metric