Skip to content

Commit

Permalink
[jvm-packages] fix the split of input (#4417)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingCat authored Apr 30, 2019
1 parent 91c513a commit 253fdd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class XGBoostGeneralSuite extends FunSuite with PerTest {

test("train with multiple validation datasets (ranking)") {
val training = buildDataFrameWithGroup(Ranking.train, 5)
val Array(train, eval1, eval2) = training.randomSplit(Array(0.6, 0.2, 0.2))
val Array(train, eval1, eval2) = training.randomSplit(Array(0.6, 0.2, 0.2), 0)
val paramMap1 = Map("eta" -> "1", "max_depth" -> "6",
"objective" -> "rank:pairwise",
"num_round" -> 5, "num_workers" -> numWorkers, "group_col" -> "group")
Expand Down

0 comments on commit 253fdd8

Please sign in to comment.