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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fpgrowth_py-1.0.0.tar.gz | 4.0 kB | Without provenance | Details for fpgrowth_py-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fpgrowth_py-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for fpgrowth_py-1.0.0-py3-none-any.whl |
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
|
Security for fpgrowth-py 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.