Module ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Call NameLoad ListLoad NameLoad attr NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body If CompareGtE Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareGtE Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call NameLoad ListLoad NameLoad comprehension NameStore NameLoad Assign NameStore ListLoad For NameStore Call NameLoad BinOpSub NameLoad Num body Print Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Assign NameStore BinOpBitAnd NameLoad NameLoad If CompareGtE Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad BinOpBitOr NameLoad Call NameLoad ListLoad NameLoad If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If UnaryOpNot Call NameLoad NameLoad body Break Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Return TupleLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Str ListLoad Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareGt Call NameLoad NameLoad Num For NameStore NameLoad body For NameStore NameLoad body Assign NameStore Call NameLoad ListLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpDiv SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpDiv SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore BinOpDiv NameLoad NameLoad If CompareGt NameLoad NameLoad body Expr Yield Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list
N/A collections namedtuple apriori N/A N/A dataset minsupport maxsize N/A N/A N/A 
    freqsets, support = apriori(dataset, minsupport, maxsize)

    Parameters
    ----------
    dataset : sequence of sequences
        input dataset
    minsupport : int
        Minimal support for frequent items
    maxsize : int
        Maximal size of frequent items to return

    Returns
    -------
    freqsets : sequence of sequences
    support : dictionary
        This associates each itemset (represented as a frozenset) with a float
        (the support of that itemset)
     collections defaultdict N/A baskets N/A defaultdict list N/A pointers N/A defaultdict list N/A N/A i ds N/A enumerate dataset N/A N/A ell ds N/A N/A N/A N/A N/A pointers N/A ell append i N/A N/A N/A N/A baskets N/A N/A frozenset N/A ell append i N/A new_pointers N/A dict N/A k pointers N/A N/A N/A N/A len N/A pointers N/A k minsupport N/A N/A N/A new_pointers N/A k N/A frozenset N/A pointers N/A k N/A pointers new_pointers N/A k baskets N/A N/A N/A baskets N/A k N/A frozenset N/A baskets N/A k N/A valid N/A set N/A N/A el c N/A N/A baskets items N/A N/A N/A N/A len c minsupport N/A N/A N/A N/A valid update el N/A itemsets N/A N/A frozenset N/A v N/A v valid N/A freqsets N/A N/A i N/A range N/A maxsize 1 N/A N/A N/A N/A At iteration {}, number of frequent baskets: {} format i N/A len itemsets N/A newsets N/A N/A it itemsets N/A N/A ccounts N/A baskets N/A it N/A N/A v pv N/A N/A pointers items N/A N/A N/A v it N/A N/A csup N/A ccounts pv N/A N/A N/A len csup minsupport N/A N/A new N/A frozenset N/A it N/A frozenset N/A v N/A N/A new baskets N/A N/A N/A N/A newsets append new N/A N/A baskets N/A new csup N/A N/A N/A freqsets extend itemsets N/A itemsets newsets N/A N/A N/A len itemsets N/A N/A N/A support N/A N/A k baskets N/A N/A N/A support N/A k N/A float N/A len N/A baskets N/A k N/A N/A freqsets support N/A N/A AssociationRule N/A namedtuple AssociationRule N/A antecendent consequent base py_x lift association_rules N/A N/A dataset freqsets support minlift N/A N/A N/A 
    for assoc_rule in association_rules(dataset, freqsets, support, minlift):
        ...

    This function takes the returns from ``apriori``.

    Parameters
    ----------
    dataset : sequence of sequences
        input dataset
    freqsets : sequence of sequences
    support : dictionary
    minlift : int
        minimal lift of yielded rules

    Returns
    -------
    assoc_rule : sequence of AssociationRule objects
     N/A nr_transactions N/A float N/A len dataset N/A freqsets N/A f N/A f freqsets N/A N/A len f 1 N/A fset freqsets N/A N/A f fset N/A N/A consequent N/A frozenset N/A f N/A antecendent N/A fset consequent N/A py_x N/A N/A support N/A fset N/A support N/A antecendent N/A base N/A N/A support N/A consequent nr_transactions N/A lift N/A py_x base N/A N/A lift minlift N/A N/A N/A N/A AssociationRule antecendent consequent base py_x lift N/A