spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From feynmanliang <...@git.apache.org>
Subject [GitHub] spark pull request: [SPARK-9898][MLlib] Prefix Span user guide
Date Tue, 18 Aug 2015 00:39:24 GMT
Github user feynmanliang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8253#discussion_r37253817
  
    --- Diff: docs/mllib-frequent-pattern-mining.md ---
    @@ -96,3 +96,99 @@ for (FPGrowth.FreqItemset<String> itemset: model.freqItemsets().toJavaRDD().coll
     
     </div>
     </div>
    +
    +## PrefixSpan
    +
    +PrefixSpan is a sequential pattern mining algorithm described in
    +[Pei et al., Mining Sequential Patterns by Pattern-Growth: The
    +PrefixSpan Approach](http://dx.doi.org/10.1109%2FTKDE.2004.77). We refer
    +the reader to the referenced paper for formalizing the sequential
    +pattern mining problem.
    +
    +MLlib's PrefixSpan implementation takes the following parameters:
    +
    +* `minSupport`: the minimum support required to be considered a frequent
    +  sequential pattern.
    +* `maxPatternLength`: the maximum length of a frequent sequential
    +  pattern. Any frequent pattern exceeding this length will not be
    +  included in the results.
    +* `maxLocalProjDBSize`: the maximum number of items allowed in a
    +  prefix-projected database before local iterative processing of the
    +  projected databse begins. This parameter should be tuned with respect
    +  to the size of your executors.
    +
    +
    +
    +**Examples**
    +
    +The following example illustrates PrefixSpan running on the sequences
    +(using same notation as Pei et al):
    +
    +  <(12)3>
    --- End diff --
    
    OK


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Mime
View raw message