Github user manishamde commented on a diff in the pull request:
https://github.com/apache/spark/pull/1975#discussion_r16328127
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala ---
@@ -130,22 +124,37 @@ class DecisionTree (private val strategy: Strategy)
extends Serializable with Lo
// Find best split for all nodes at a level.
timer.start("findBestSplits")
val splitsStatsForLevel = DecisionTree.findBestSplits(treeInput,
parentImpurities,
- strategy, level, filters, splits, bins, maxLevelForSingleGroup,
timer)
+ metadata, level, nodes, splits, bins, maxLevelForSingleGroup,
timer)
timer.stop("findBestSplits")
+ val levelNodeIndexOffset = (1 << level) - 1
--- End diff --
Ditto: comment might help to understand the calculation using bit shift.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]