fpgrowth_py
fpgrowth_py copied to clipboard
The output is wrong when the minConf=1
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)