Fix validation of GradientBoostingRegression, and only check two best loss functions.