Skip to content

Commit

Permalink
Merge pull request pycaret#853 from batmanscode/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Yard1 authored Nov 17, 2020
2 parents 4650c08 + 85f3874 commit 7040f01
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pycaret/arules.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def setup(data, transaction_id, item_id, ignore_items=None, session_id=None):
Example
-------
>>> from pycaret.datasets import get_data
>>> france = get_data('france')
>>> data = get_data('france')
>>> from pycaret.arules import *
>>> exp = setup(data = data, transaction_id = 'InvoiceNo', item_id = 'ProductName')
>>> exp = setup(data = data, transaction_id = 'InvoiceNo', item_id = 'Description')
data: pandas.DataFrame
Expand Down Expand Up @@ -126,9 +126,9 @@ def create_model(metric="confidence", threshold=0.5, min_support=0.05, round=4):
Example
-------
>>> from pycaret.datasets import get_data
>>> france = get_data('france')
>>> data = get_data('france')
>>> from pycaret.arules import *
>>> exp_name = setup(data = data, transaction_id = 'InvoiceNo', item_id = 'ProductName')
>>> exp_name = setup(data = data, transaction_id = 'InvoiceNo', item_id = 'Description')
>>> model1 = create_model(metric = 'confidence')
Expand Down Expand Up @@ -226,8 +226,9 @@ def plot_model(
Example
-------
>>> from pycaret.datasets import get_data
>>> france = get_data('france')
>>> data = get_data('france')
>>> from pycaret.arules import *
>>> exp_name = setup(data = data, transaction_id = 'InvoiceNo', item_id = 'Description')
>>> rule1 = create_model(metric='confidence', threshold=0.7, min_support=0.05)
>>> plot_model(rule1, plot='2d')
Expand Down

0 comments on commit 7040f01

Please sign in to comment.