File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mllib/src/test/scala/org/apache/spark/mllib/tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ package org.apache.spark.mllib.tree
19
19
20
20
import org .scalatest .FunSuite
21
21
22
- import org .apache .spark .mllib .regression . LabeledPoint
22
+ import org .apache .spark .mllib .point . WeightedLabeledPoint
23
23
import org .apache .spark .mllib .tree .impurity .{Entropy , Gini , Variance }
24
24
import org .apache .spark .mllib .tree .model .Filter
25
25
import org .apache .spark .mllib .tree .model .Split
@@ -455,7 +455,7 @@ object DecisionTreeSuite {
455
455
val lp = new LabeledPoint (0.0 , Vectors .dense(i.toDouble, 1000.0 - i))
456
456
arr(i) = lp
457
457
} else {
458
- val lp = new LabeledPoint (1.0 , Vectors .dense(i.toDouble, 1000.0 - i))
458
+ val lp = new WeightedLabeledPoint (1.0 , Vectors .dense(i.toDouble, 1000.0 - i))
459
459
arr(i) = lp
460
460
}
461
461
}
@@ -468,7 +468,7 @@ object DecisionTreeSuite {
468
468
if (i < 600 ) {
469
469
arr(i) = new LabeledPoint (1.0 , Vectors .dense(0.0 , 1.0 ))
470
470
} else {
471
- arr(i) = new LabeledPoint (0.0 , Vectors .dense(1.0 , 0.0 ))
471
+ arr(i) = new WeightedLabeledPoint (0.0 , Vectors .dense(1.0 , 0.0 ))
472
472
}
473
473
}
474
474
arr
You can’t perform that action at this time.
0 commit comments