PCY implementation
Example
test.py
from pcy_algo import pcy_algo
num_transactions = pd.read_csv("path/to/dataset")
hash_func_size = 40
support = 500 # 5 percentage
confidence = 30
num_transactions containes baskets with items encoded as integers
- num_transactions = [[12,1,2,3,4],[2,3,49,45,12],[12,98,45,22]]
unique_items contains distinct elements.
- unique_items = (12,1,2,3,4,49,45,98,22)
create object
basket = pcy_algo(num_transactions,unique_items,hash_func_size,support,confidence)
result = basket.mine_data()
Metadata
Release files for pcy-algo 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pcy_algo-0.0.2.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pcy_algo-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / pcy_algo-0.0.2.tar.gz
| Download URL | pcy_algo-0.0.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b6626fe1501b108fabd9bf248cb7eab2fbd71f815468c0ee864c62279d3492b
|
|
BLAKE2b-256 checksum How to use checksums |
4f9d6a4d272cbb0f7b7f8378cb2554e56d475e2a854c0689fe2dd7e82623c1bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / pcy_algo-0.0.2-py3-none-any.whl
| Download URL | pcy_algo-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63d58e7f16c96ea0a283b59a0f8c6c5a397767142abc07fb73e6843c4770d01b
|
|
BLAKE2b-256 checksum How to use checksums |
3bb4982507f8e381924554866c77bcc946dfd75c3c4859e25260ed6b9df2f6f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|