Skip to main content

How to use

Install the Pypi package using pip

pip install fpgrowth_py

Then use it like

from fpgrowth_py import fpgrowth
itemSetList = [['eggs', 'bacon', 'soup'],
                ['eggs', 'bacon', 'apple'],
                ['soup', 'bacon', 'banana']]
freqItemSet, rules = fpgrowth(itemSetList, minSup=0.5, minConf=0.5)
print(rules)  
# [[{'beer'}, {'rice'}, 0.6666666666666666], [{'rice'}, {'beer'}, 1.0]]
# rules[0] --> rules[1], confidence = rules[2]

Clone the repo

Get a copy of this repo using git clone

git clone https://github.com/chonyy/fpgrowth_py.git

Run the program with dataset provided and default values for minSupport = 0.5 and minConfidence = 0.5

python fpgrowth.py -f dataset.csv

Run program with dataset and min support and min confidence

python fpgrowth.py -f dataset.csv -s 0.33 -c 0.77

Metadata

Release files for fpgrowth-py 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fpgrowth-py 1.0.0
File Size Uploaded
fpgrowth_py-1.0.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fpgrowth-py 1.0.0
File Interpreter ABI Platform
fpgrowth_py-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / fpgrowth_py-1.0.0.tar.gz

Download URL fpgrowth_py-1.0.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
79bd9e963f034c9e3c4db8bc111280cfd92d87df74a60f3f28f47ba729e8689e
BLAKE2b-256 checksum
How to use checksums
784b9ba2c8866128219ab17eeb3ac0df0c5998cd139f1be2933adc91a8642d7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.2

Release files / fpgrowth_py-1.0.0-py3-none-any.whl

Download URL fpgrowth_py-1.0.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57da89c5568ab52d1b5e0dfa028b31981525f6356848a5bb8ddc6dd504e4fffb
BLAKE2b-256 checksum
How to use checksums
1851e0cc561ab4a1079c1fad85a43bfa1a95fbe1f4f27c866d12b4d79f95b1ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.2

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page