[jvm-packages] minor fix for parameter name in example (#3507)

This commit is contained in:
Nan Zhu 2018-07-25 19:57:40 -07:00 committed by GitHub
parent a725272e19
commit e2f09db77a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ object SparkWithDataFrame {
"max_depth" -> 2, "max_depth" -> 2,
"objective" -> "binary:logistic", "objective" -> "binary:logistic",
"num_round" -> numRound, "num_round" -> numRound,
"nWorkers" -> args(1).toInt).toMap "num_workers" -> args(1).toInt).toMap
val xgboostModel = new XGBoostClassifier(paramMap).fit(trainDF) val xgboostModel = new XGBoostClassifier(paramMap).fit(trainDF)
// xgboost-spark appends the column containing prediction results // xgboost-spark appends the column containing prediction results
xgboostModel.transform(testDF).show() xgboostModel.transform(testDF).show()