Metadata-Version: 2.1
Name: fpgrowth_py
Version: 1.0.0
Summary: Python implementation of FP Growth algorithm
Home-page: https://github.com/chonyy/fpgrowth_py
Author: Chonyy
Author-email: tcheon8788@gmail.com
License: UNKNOWN
Description: <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
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
