rasbt / mlxtend

A library of extension and helper modules for Python's data analysis and machine learning libraries.
https://rasbt.github.io/mlxtend/
Other
4.86k stars 857 forks source link

How to prune useless rules? #792

Closed bpdot closed 3 years ago

bpdot commented 3 years ago
antecedents consequents antecedent support consequent support support confidence lift leverage conviction antecedent_len
(banana) (eggs) 0.054217 0.427711 0.054217 1.0 2.338028 0.031028 inf 1
(banana, apple) (eggs) 0.054217 0.427711 0.054217 1.0 2.338028 0.031028 inf 2

The "(banana, apple) -> (eggs)" rule doesn't improve confidence compare to "(banana) -> (eggs)" rule. So I want to prune "(banana, apple) -> (eggs)" rule. How can I do that?