Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The output is wrong when the minConf=1 #3

Open
zhangjianzhang opened this issue Jul 17, 2021 · 0 comments
Open

The output is wrong when the minConf=1 #3

zhangjianzhang opened this issue Jul 17, 2021 · 0 comments

Comments

@zhangjianzhang
Copy link

from fpgrowth_py import fpgrowth
itemSetList = [['eggs', 'bacon', 'soup'],
               ['eggs', 'bacon', 'apple'],
               ['soup', 'bacon', 'banana']]
freqItemSet, rules = fpgrowth(itemSetList, minSupRatio=0.5, minConf=1)
print(rules)

THE EXPECTED OUTPUT RULES SHOULD BE:
[{eggs} -> {bacon}, {soup} -> {bacon}]

BUT THE OUTPUT OF THE ABOVE CODE IS:
[]

this error is found when comparing your package with another package efficient_apriori (see https://github.com/tommyod/Efficient-Apriori)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant