Save validation and test error in parameters.pkl