[jvm-packages] minor fix for parameter name in example (#3507)
This commit is contained in:
parent
a725272e19
commit
e2f09db77a
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user