chonyy / fpgrowth_py

🔨 Python implementation of FP Growth algorithm, new and simple!
https://towardsdatascience.com/fp-growth-frequent-pattern-generation-in-data-mining-with-python-implementation-244e561ab1c3
MIT License
85 stars 31 forks source link

Add support ratio in the fpgrowth's return rules #1

Open pkuimyy opened 3 years ago

pkuimyy commented 3 years ago

Your project really help me. But could you please add support ratio in the fpgrowth function's return rules?

chonyy commented 3 years ago

Hi, I'm glad that my project could help you.

You can easily get the support of the rules from https://github.com/chonyy/fpgrowth_py/blob/2457a5301486c920eb9277b37ae79a3866fe0bcc/fpgrowth_py/utils.py#L137 Feel free to clone the repo and modify it, return whatever you want! Also, you might want to read this medium post where I walk through most of the code to help you understand it.

BR, Chonyy