Changeset 10114:83fdf3ab2209 in orange


Ignore:
Timestamp:
02/08/12 18:59:11 (2 years ago)
Author:
markotoplak
Branch:
default
Message:

Some fixes to association rules documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/Orange.associate.rst

    r10086 r10114  
    11.. py:currentmodule:: Orange.associate 
    22 
    3 ======================================================= 
     3####################################################### 
    44Association rules and frequent itemsets (``associate``) 
    5 ======================================================= 
     5####################################################### 
    66 
    77Orange provides two algorithms for induction of 
     
    146146.. _non-sparse-examples: 
    147147 
    148 ==================================== 
    149148Feature-value (non-sparse) data sets 
    150 ==================================== 
     149------------------------------------ 
    151150 
    152151:class:`AssociationRulesInducer` works with non-sparse data. 
     
    212211These rules are a subset of association rules that in a consequent include only a class variable:: 
    213212 
    214 0.333  0.667  prescription=hypermetrope -> lenses=none 
    215 0.333  0.667  astigmatic=yes -> lenses=none 
    216 0.500  1.000  tear_rate=reduced -> lenses=none 
     213    0.333  0.667  prescription=hypermetrope -> lenses=none 
     214    0.333  0.667  astigmatic=yes -> lenses=none 
     215    0.500  1.000  tear_rate=reduced -> lenses=none 
    217216 
    218217Frequent itemsets are induced in a similar fashion as for sparse data, except that the 
     
    222221.. literalinclude:: code/association-lenses-itemsets.py 
    223222    :lines: 4-6 
    224  
    225     inducer = Orange.associate.AssociationRulesInducer(support = 0.3, store_examples = True) 
    226     itemsets = inducer.get_itemsets(data) 
    227     print itemsets[8] 
    228223 
    229224The script prints out:: 
     
    345340    set([0, 2, 8, 10, 16, 17, 18]) 
    346341 
    347 =============== 
     342========= 
    348343Utilities 
    349 =============== 
     344========= 
    350345 
    351346.. autofunction:: print_rules 
     
    353348.. autofunction:: sort 
    354349 
    355 References 
    356 ---------- 
     350.. rubric:: References 
    357351 
    358352.. [AgrawalSrikant1994] R Agrawal and R Srikant: Fast algorithms for mining association 
Note: See TracChangeset for help on using the changeset viewer.