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

    https://github.com/apache/spark/pull/4714#discussion_r25124132
  
    --- Diff: 
examples/src/main/scala/org/apache/spark/examples/mllib/FPGrowthExample.scala 
---
    @@ -18,29 +18,58 @@
     package org.apache.spark.examples.mllib
     
     import org.apache.spark.mllib.fpm.FPGrowth
    -import org.apache.spark.{SparkContext, SparkConf}
    +import org.apache.spark.{SparkConf, SparkContext}
    +import scopt.OptionParser
     
     /**
      * Example for mining frequent itemsets using FP-growth.
    + * Example usage: ./bin/run-example 
org.apache.spark.examples.mllib.FPGrowthExample
    + * --minSupport 0.8 --numPartition 2 ./data/mllib/sample_fpgrowth.txt
      */
     object FPGrowthExample {
     
    +  case class Params(
    +    input: String = null,
    +    minSupport: Double = 0.3,
    +    numPartition: Int = -1) extends AbstractParams[Params]
    +
       def main(args: Array[String]) {
    -    val conf = new SparkConf().setAppName("FPGrowthExample")
    +    val defaultParams = Params()
    +
    +    val parser = new OptionParser[Params]("FPGrowth") {
    --- End diff --
    
    `FPGrowth` -> `FPGrowthExample`


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to