We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a38f48 commit db0d773Copy full SHA for db0d773
mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala
@@ -212,8 +212,9 @@ class DecisionTree (private val strategy: Strategy) extends Serializable with Lo
212
maxDepth: Int,
213
nodeSplitStats: (Split, InformationGainStats),
214
parentImpurities: Array[Double]): Unit = {
215
- if (level >= maxDepth)
+ if (level >= maxDepth) {
216
return
217
+ }
218
// 0 corresponds to the left child node and 1 corresponds to the right child node.
219
var i = 0
220
while (i <= 1) {
0 commit comments