From 06093e42eae81df06afbb1ee8c7a9eb099155b12 Mon Sep 17 00:00:00 2001 From: Helw150 Date: Thu, 27 Sep 2018 15:54:00 +0400 Subject: [PATCH] String's simplified --- .../src/main/java/ml/dmlc/xgboost4j/java/XGBoost.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/XGBoost.java b/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/XGBoost.java index de141bef1ffc..b29abd9b0ab1 100644 --- a/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/XGBoost.java +++ b/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/XGBoost.java @@ -165,9 +165,9 @@ public static BoosterResults trainWithResults( List logLines = new ArrayList(); 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 }