Skip to content

Commit b60b475

Browse files
committed
Use testInput.
1 parent 6fe690d commit b60b475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/src/main/scala/org/apache/spark/examples/ml/DecisionTreeExample.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ object DecisionTreeExample {
173173
val splits: Array[RDD[LabeledPoint]] = if (testInput != "") {
174174
// Load testInput.
175175
val numFeatures = origExamples.take(1)(0).features.size
176-
val origTestExamples: RDD[LabeledPoint] = loadData(sc, input, dataFormat, Some(numFeatures))
176+
val origTestExamples: RDD[LabeledPoint] = loadData(sc, testInput, dataFormat, Some(numFeatures))
177177
Array(origExamples, origTestExamples)
178178
} else {
179179
// Split input into training, test.

0 commit comments

Comments
 (0)