Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/2341#discussion_r17509172
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala ---
@@ -87,17 +87,11 @@ class DecisionTree (private val strategy: Strategy)
extends Serializable with Lo
val maxDepth = strategy.maxDepth
require(maxDepth <= 30,
s"DecisionTree currently only supports maxDepth <= 30, but was given
maxDepth = $maxDepth.")
- // Number of nodes to allocate: max number of nodes possible given the
depth of the tree, plus 1
- val maxNumNodesPlus1 = Node.startIndexInLevel(maxDepth + 1)
- // Initialize an array to hold parent impurity calculations for each
node.
- val parentImpurities = new Array[Double](maxNumNodesPlus1)
- // dummy value for top node (updated during first split calculation)
- val nodes = new Array[Node](maxNumNodesPlus1)
// Calculate level for single group construction
// Max memory usage for aggregates
- val maxMemoryUsage = strategy.maxMemoryInMB * 1024 * 1024
+ val maxMemoryUsage = strategy.maxMemoryInMB * 1024L * 1024L
--- End diff --
I'll go for 10GB since 1GB memory is not that large.
---
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]