[GitHub] spark pull request #13493: [SPARK-15750][MLLib][PYSPARK] Constructing FPGrow...

2018-05-07 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/spark/pull/13493


---

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



[GitHub] spark pull request #13493: [SPARK-15750][MLLib][PYSPARK] Constructing FPGrow...

2017-09-29 Thread WeichenXu123
Github user WeichenXu123 commented on a diff in the pull request:

https://github.com/apache/spark/pull/13493#discussion_r141852693
  
--- Diff: python/pyspark/mllib/tests.py ---
@@ -1762,6 +1763,18 @@ def test_pca(self):
 self.assertEqualUpToSign(pcs.toArray()[:, k - 1], 
expected_pcs[:, k - 1])
 
 
+class FPGrowthTest(MLlibTestCase):
+
+def test_fpgrowth(self):
+data = [["a", "b", "c"], ["a", "b", "d", "e"], ["a", "c", "e"], 
["a", "c", "f"]]
+rdd = self.sc.parallelize(data, 2)
+model = FPGrowth.train(rdd, 0.6, 2)
--- End diff --

This line is useless.


---

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



[GitHub] spark pull request #13493: [SPARK-15750][MLLib][PYSPARK] Constructing FPGrow...

2016-06-03 Thread zjffdu
GitHub user zjffdu opened a pull request:

https://github.com/apache/spark/pull/13493

[SPARK-15750][MLLib][PYSPARK] Constructing FPGrowth fails when no 
numPartitions specified in pyspark

## What changes were proposed in this pull request?

Change FPGrowth from private to private[spark]

## How was this patch tested?

Unit test is added



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/zjffdu/spark SPARK-15750

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/spark/pull/13493.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #13493


commit 56cd7cf4b651706a4b6a3b9e3d3a166bc0baa514
Author: Jeff Zhang 
Date:   2016-06-03T03:42:54Z

[SPARK-15750][MLLib][PYSPARK] Constructing FPGrowth fails when no 
numPartitions specified in pyspark




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

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