You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by felixcheung <gi...@git.apache.org> on 2017/07/01 04:29:27 UTC

[GitHub] spark pull request #17280: [SPARK-19939] [ML] Add support for association ru...

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

    https://github.com/apache/spark/pull/17280#discussion_r125154338
  
    --- Diff: python/pyspark/ml/fpm.py ---
    @@ -186,29 +186,29 @@ class FPGrowth(JavaEstimator, HasItemsCol, HasPredictionCol,
         |[z]                     |
         |[x, z, y, r, q, t, p]   |
         +------------------------+
    -    >>> fp = FPGrowth(minSupport=0.2, minConfidence=0.7)
    +    >>> fp = FPGrowth(minSupport=0.4, minConfidence=0.7)
         >>> fpm = fp.fit(data)
         >>> fpm.freqItemsets.show(5)
    -    +---------+----+
    -    |    items|freq|
    -    +---------+----+
    -    |      [s]|   3|
    -    |   [s, x]|   3|
    -    |[s, x, z]|   2|
    -    |   [s, z]|   2|
    -    |      [r]|   3|
    -    +---------+----+
    +    +------+----+
    +    | items|freq|
    +    +------+----+
    +    |   [s]|   3|
    +    |[s, x]|   3|
    +    |   [r]|   3|
    +    |   [y]|   3|
    +    |[y, x]|   3|
    +    +------+----+
    --- End diff --
    
    or rather, why is https://github.com/apache/spark/pull/17280/files#diff-b6dbf16870bd2cca9b4140df8aebd681L189 changed?


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