redo parameter optimisation with training error and cross validation error