GitHub user jackylk opened a pull request:
https://github.com/apache/spark/pull/4340
[SPARK-5520][MLlib] Make FP-Growth implementation take generic item types
(WIP)
Make FPGrowth.run API take generic item types:
`def run[Item: ClassTag, Basket <: Iterable[Item]](data: RDD[Basket]):
FPGrowthModel[Item]`
so that user can invoke it by run[String, Seq[String]], run[Int, Seq[Int]],
run[Int, List[Int]], etc.
Scala part is done, while java part is still in progress
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jackylk/spark SPARK-5520-WIP
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4340.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 #4340
----
commit 7783351736bd3a6d766ab44a9c2a19e6d5411d74
Author: Jacky Li <[email protected]>
Date: 2015-02-03T16:54:41Z
add generic support in FPGrowth
commit 793f85c131eade9b58a94655f318f1a00a7f2d9f
Author: Jacky Li <[email protected]>
Date: 2015-02-03T17:01:12Z
add Java test case
----
---
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]