fpgrowth-py-1.0.0
توضیحات
Python implementation of FP Growth algorithm
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fpgrowth-py-1.0.0 |
| نام | fpgrowth-py |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Chonyy |
| ایمیل نویسنده | tcheon8788@gmail.com |
| آدرس صفحه اصلی | https://github.com/chonyy/fpgrowth_py |
| آدرس اینترنتی | https://pypi.org/project/fpgrowth-py/ |
| مجوز | - |
<p align=center>
<img src="fpgrowth.PNG" width="468" height="303">
</p>
<p align=center>
<a target="_blank" href="#" title="pip"><img src="https://img.shields.io/pypi/v/fpgrowth_py?color=brightgreen"></a>
<a target="_blank" href="#" title="language count"><img src="https://img.shields.io/github/languages/count/chonyy/fpgrowth_py"></a>
<a target="_blank" href="#" title="top language"><img src="https://img.shields.io/github/languages/top/chonyy/fpgrowth_py?color=orange"></a>
<a target="_blank" href="https://opensource.org/licenses/MIT" title="License: MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg"></a>
<a target="_blank" href="#" title="repo size"><img src="https://img.shields.io/github/repo-size/chonyy/fpgrowth_py"></a>
<a target="_blank" href="http://makeapullrequest.com" title="PRs Welcome"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg"></a>
</p>
# How to use
## Install the Pypi package using pip
```
pip install fpgrowth_py
```
Then use it like
```python
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
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl fpgrowth-py-1.0.0:
pip install fpgrowth-py-1.0.0.whl
نصب پکیج tar.gz fpgrowth-py-1.0.0:
pip install fpgrowth-py-1.0.0.tar.gz