Skip to content

Commit

Permalink
Use testInput.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Apr 20, 2015
1 parent 6fe690d commit b60b475
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ object DecisionTreeExample {
val splits: Array[RDD[LabeledPoint]] = if (testInput != "") {
// Load testInput.
val numFeatures = origExamples.take(1)(0).features.size
val origTestExamples: RDD[LabeledPoint] = loadData(sc, input, dataFormat, Some(numFeatures))
val origTestExamples: RDD[LabeledPoint] = loadData(sc, testInput, dataFormat, Some(numFeatures))
Array(origExamples, origTestExamples)
} else {
// Split input into training, test.
Expand Down

0 comments on commit b60b475

Please sign in to comment.