add err_mae() and err_max() to test the model performance