Skip to content

Commit ef80603

Browse files
committed
[SPARK-2417][MLlib] Fix DecisionTree tests
1 parent 339441f commit ef80603

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mllib/src/test/scala/org/apache/spark/mllib/tree/DecisionTreeSuite.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ class DecisionTreeSuite extends FunSuite with LocalSparkContext {
253253

254254
val stats = bestSplits(0)._2
255255
assert(stats.gain > 0)
256-
assert(stats.predict > 0.4)
257-
assert(stats.predict < 0.5)
256+
assert(stats.predict > 0.5)
257+
assert(stats.predict < 0.7)
258258
assert(stats.impurity > 0.2)
259259
}
260260

@@ -280,8 +280,8 @@ class DecisionTreeSuite extends FunSuite with LocalSparkContext {
280280

281281
val stats = bestSplits(0)._2
282282
assert(stats.gain > 0)
283-
assert(stats.predict > 0.4)
284-
assert(stats.predict < 0.5)
283+
assert(stats.predict > 0.5)
284+
assert(stats.predict < 0.7)
285285
assert(stats.impurity > 0.2)
286286
}
287287

0 commit comments

Comments
 (0)