Skip to content

The output is wrong when the minConf=1 #3

@zhangjianzhang

Description

@zhangjianzhang
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions