fpgrowth_py icon indicating copy to clipboard operation
fpgrowth_py copied to clipboard

The output is wrong when the minConf=1

Open zhangjianzhang opened this issue 2 years ago • 0 comments

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)

zhangjianzhang avatar Jul 17 '21 10:07 zhangjianzhang