aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorXiangrui Meng <meng@databricks.com>2015-02-05 23:32:09 -0800
committerXiangrui Meng <meng@databricks.com>2015-02-05 23:32:09 -0800
commit6b88825a25a0a072c13bbcc57bbfdb102a3f133d (patch)
tree85a8584398acceb1f696d96aafb8130b9601b3e8 /examples
parent7dc4965f34e37b37f4fab69859fcce6476f87811 (diff)
downloadspark-6b88825a25a0a072c13bbcc57bbfdb102a3f133d.tar.gz
spark-6b88825a25a0a072c13bbcc57bbfdb102a3f133d.tar.bz2
spark-6b88825a25a0a072c13bbcc57bbfdb102a3f133d.zip
[SPARK-5604][MLLIB] remove checkpointDir from trees
This is the second part of SPARK-5604, which removes checkpointDir from tree strategies. Note that this is a break change. I will mention it in the migration guide. Author: Xiangrui Meng <meng@databricks.com> Closes #4407 from mengxr/SPARK-5604-1 and squashes the following commits: 13a276d [Xiangrui Meng] remove checkpointDir from trees
Diffstat (limited to 'examples')
-rw-r--r--examples/src/main/scala/org/apache/spark/examples/mllib/DecisionTreeRunner.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/src/main/scala/org/apache/spark/examples/mllib/DecisionTreeRunner.scala b/examples/src/main/scala/org/apache/spark/examples/mllib/DecisionTreeRunner.scala
index 205d80dd02..262fd2c961 100644
--- a/examples/src/main/scala/org/apache/spark/examples/mllib/DecisionTreeRunner.scala
+++ b/examples/src/main/scala/org/apache/spark/examples/mllib/DecisionTreeRunner.scala
@@ -272,6 +272,8 @@ object DecisionTreeRunner {
case Variance => impurity.Variance
}
+ params.checkpointDir.foreach(sc.setCheckpointDir)
+
val strategy
= new Strategy(
algo = params.algo,
@@ -282,7 +284,6 @@ object DecisionTreeRunner {
minInstancesPerNode = params.minInstancesPerNode,
minInfoGain = params.minInfoGain,
useNodeIdCache = params.useNodeIdCache,
- checkpointDir = params.checkpointDir,
checkpointInterval = params.checkpointInterval)
if (params.numTrees == 1) {
val startTime = System.nanoTime()