08 - regression metrics

ei=yi−y^i
MAE

  • the mean absolute error (MAE) takes the absolute value of each error:
MAE+1n∑i=1n|yi−y^i|

MSE

  • the mean squared error (MSE) takes the squares of the errors:
MSE=1n∑i=1n(yi−y^i)2

RMSE

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

RMSE=1n∑i(yi−y^i)2
R-squared

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

R2=1−∑i(yi−y^i)2∑i(yi−y¯i)2

loss function vs evaluation metric