Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1673#discussion_r15627507
  
    --- Diff: 
examples/src/main/scala/org/apache/spark/examples/mllib/DecisionTreeRunner.scala
 ---
    @@ -69,25 +73,32 @@ object DecisionTreeRunner {
           opt[Int]("maxDepth")
             .text(s"max depth of the tree, default: ${defaultParams.maxDepth}")
             .action((x, c) => c.copy(maxDepth = x))
    -      opt[Int]("numClassesForClassification")
    -        .text(s"number of classes for classification, "
    -          + s"default: ${defaultParams.numClassesForClassification}")
    -        .action((x, c) => c.copy(numClassesForClassification = x))
           opt[Int]("maxBins")
             .text(s"max number of bins, default: ${defaultParams.maxBins}")
             .action((x, c) => c.copy(maxBins = x))
    +      opt[Double]("fracTest")
    +        .text(s"fraction of data to hold out for testing, default: 
${defaultParams.fracTest}")
    +        .action((x, c) => c.copy(fracTest = x))
           arg[String]("<input>")
             .text("input paths to labeled examples in dense format (label,f0 
f1 f2 ...)")
    --- End diff --
    
    If we take LIBSVM format, we should update the doc here.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to