calculate MAE and RMSE