Skip to content

Commit e0426ee

Browse files
committed
renamed parameter
1 parent 718506b commit e0426ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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
@@ -77,7 +77,7 @@ class DecisionTree (private val strategy: Strategy) extends Serializable with Lo
7777
// Calculate level for single group construction
7878

7979
// Max memory usage for aggregates
80-
val maxMemoryUsage = strategy.maxMemory * 1024 * 1024
80+
val maxMemoryUsage = strategy.maxMemoryInMB * 1024 * 1024
8181
logDebug("max memory usage for aggregates = " + maxMemoryUsage)
8282
val numElementsPerNode = {
8383
strategy.algo match {

mllib/src/main/scala/org/apache/spark/mllib/tree/configuration/Strategy.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import org.apache.spark.mllib.tree.configuration.QuantileStrategy._
3535
* k) implies the feature n is categorical with k categories 0,
3636
* 1, 2, ... , k-1. It's important to note that features are
3737
* zero-indexed.
38-
* @param maxMemory maximum memory in MB allocated to histogram aggregation. Default value is
38+
* @param maxMemoryInMB maximum memory in MB allocated to histogram aggregation. Default value is
3939
* 128 MB.
4040
*
4141
*/
@@ -47,4 +47,4 @@ class Strategy (
4747
val maxBins: Int = 100,
4848
val quantileCalculationStrategy: QuantileStrategy = Sort,
4949
val categoricalFeaturesInfo: Map[Int, Int] = Map[Int, Int](),
50-
val maxMemory: Int = 128) extends Serializable
50+
val maxMemoryInMB: Int = 128) extends Serializable

0 commit comments

Comments
 (0)