Skip to content

Commit 987cbf4

Browse files
author
qiping.lqp
committed
fix bug
1 parent ff34845 commit 987cbf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class DecisionTree (private val strategy: Strategy) extends Serializable with Lo
145145
val stats = nodeSplitStats._2
146146
val predict = nodeSplitStats._3
147147
val isLeaf = (stats.gain <= 0) || (level == strategy.maxDepth)
148-
val node = new Node(nodeIndex, predict, isLeaf, Some(split), None, None, Some(stats))
148+
val node = new Node(nodeIndex, predict.predict, isLeaf, Some(split), None, None, Some(stats))
149149
logDebug("Node = " + node)
150150
nodes(nodeIndex) = node
151151
timer.stop("extractNodeInfo")

0 commit comments

Comments
 (0)