We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3c84cc commit 86e217fCopy full SHA for 86e217f
mllib/src/main/scala/org/apache/spark/mllib/tree/DecisionTree.scala
@@ -220,7 +220,7 @@ class DecisionTree (private val strategy: Strategy) extends Serializable with Lo
220
*/
221
222
timer.reset()
223
- val treeInput = TreePoint.convertToTreeRDD(retaggedInput, bins, metadata)
+ val treeInput = TreePoint.convertToTreeRDD(retaggedInput, bins, metadata).cache()
224
timer.initTime += timer.elapsed()
225
226
// depth of the decision tree
0 commit comments