Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[SPARK-3159][ML] decision tree pruning, added missing curly braces
  • Loading branch information
asolimando committed Mar 2, 2018
commit 3dfe86c8376c705137d3b2ae57565a3c30d4a96d
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ private object RandomForestSuite {
}

@tailrec
private def getSumLeafCounters(nodes: List[Node], acc: Long = 0): Long =
private def getSumLeafCounters(nodes: List[Node], acc: Long = 0): Long = {
if (nodes.isEmpty) {
acc
}
Expand All @@ -719,4 +719,5 @@ private object RandomForestSuite {
case l: LeafNode => getSumLeafCounters(nodes.tail, acc + l.impurityStats.count)
}
}
}
}