python-fp-growth
python-fp-growth copied to clipboard
Result is not correct for a specific case
Hi Eric,
Thanks for your nice work. I really love the code style and learn a lot from it.
I had a problem while using your library. Hope you can give me some help.
I use the following transaction as input.
a,d,e,f
a,d,e,f
a,c
a,c,d,e,f
a,c
a,c
The number of item set {a, e, f} is 3 but the function gives me 2 which is not correct.
I think the problem happens when you try to remove unpopular nodes in function conditional_tree_from_paths
Thanks for your work again.
Best, Zicun
I encountered the same problem. Maybe some details in the implementation are not correct.
Check the pull request here: https://github.com/enaeseth/python-fp-growth/pull/5