How can I set minimum lift in apriori algorithm?

Viewed 37
itemsets,rules=apriori(sdata1,min_support=0.25,min_confidence=0.5)

with the help of efficient_appriori, it is possible to filter and sort the returned list of association rules.

for item in sorted(rules,key=lambda item:(item.lift,item.conviction),reverse=True):
    print('\n',item)

I try to place min_lift=1.1 in itemsets,rules=apriori(sdata1,min_support=0.25,min_confidence=0.5) but it does not work.

0 Answers
Related