Skip to content

Commit

Permalink
String's simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
Helw150 committed Sep 27, 2018
1 parent 03ea3b2 commit 06093e4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ public static BoosterResults trainWithResults(
List<String> logLines = new ArrayList<String>();

if (evals != null && evals.length == 0) {
throw new XGBoostError("Evaluation function array is empty, but not null. Please drop evals if no custom evaluations are desired.");
throw new XGBoostError("Evaluation function array is empty, but not null.");
} else if (earlyStoppingRound != 0 && evals != null && evals.length > 1) {
Rabit.trackerPrint("Early stopping with multiple custom evaluation functions is not supported, disabling early stopping.");
Rabit.trackerPrint("Multiple evaluation functions provided, disabling early stopping.");
earlyStoppingRound = 0
}

Expand Down

0 comments on commit 06093e4

Please sign in to comment.