[
https://issues.apache.org/jira/browse/SPARK-8855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15061044#comment-15061044
]
Joseph K. Bradley commented on SPARK-8855:
------------------------------------------
Oops, apologies for not realizing AssociationRules had a public constructor.
You are correct that you'll need to create a class AssociationRules within the
fpm.py file, as well as the class Rule within that. It would be great if you
could provide both APIs:
* {{FPGrowthModel.generateAssociationRules}}
* {{AssociationRules}} which takes a custom RDD
Perhaps both APIs could leverage FPGrowthModelWrapper internally so you have to
write less code.
> Python API for Association Rules
> --------------------------------
>
> Key: SPARK-8855
> URL: https://issues.apache.org/jira/browse/SPARK-8855
> Project: Spark
> Issue Type: New Feature
> Components: MLlib
> Reporter: Feynman Liang
> Priority: Minor
>
> A simple Python wrapper and doctests needs to be written for Association
> Rules. The relevant method is {{FPGrowthModel.generateAssociationRules}}. The
> code will likely live in {{fpm.py}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]