diff --git a/jvm-packages/xgboost4j/src/main/scala/ml/dmlc/xgboost4j/scala/XGBoost.scala b/jvm-packages/xgboost4j/src/main/scala/ml/dmlc/xgboost4j/scala/XGBoost.scala index c510772701ef..bab62f4c54e4 100644 --- a/jvm-packages/xgboost4j/src/main/scala/ml/dmlc/xgboost4j/scala/XGBoost.scala +++ b/jvm-packages/xgboost4j/src/main/scala/ml/dmlc/xgboost4j/scala/XGBoost.scala @@ -51,8 +51,17 @@ object XGBoost { .mapValues(_.toString.asInstanceOf[AnyRef]) .asJava - val xgboostResults = JXGBoost.trainWithResults(dtrain.jDMatrix, jFilteredParams, round, jWatches, - metrics, obj, evals, earlyStoppingRound, jBooster) + val xgboostResults = JXGBoost.trainWithResults( + dtrain.jDMatrix, + jFilteredParams, + round, + jWatches, + metrics, + obj, + evals, + earlyStoppingRound, + jBooster + ) xgboostResults }