Welcome to Orange3-Associate documentation!

Widgets

Association Rules

Induction of association rules.

Inputs

  • Data: Data set

Outputs

  • Matching Data: Data instances matching the criteria.

This widget implements FP-growth frequent pattern mining algorithm [1] with bucketing optimization [2] for conditional databases of few items. For inducing classification rules, it generates rules for the entire itemset and skips the rules where the consequent does not match one of the class’ values.

_images/association-rules-stamped.png

  1. Information on the data set.

  2. In Find association rules you can set criteria for rule induction:

    • Minimal support: percentage of the entire data set covered by the entire rule (antecedent and consequent).
    • Minimal confidence: proportion of the number of examples which fit the right side (consequent) among those that fit the left side (antecedent).
    • Max. number of rules: limit the number of rules the algorithm generates. Too many rules can slow down the widget considerably. If Induce classification (itemset → class) rules is ticked, the widget will only generate rules that have a class value on the right-hand side (consequent) of the rule. If Auto find rules is on, the widget will run the search at every change of parameters. Might be slow for data sets with many attributes, so pressing Find rules only when the parameters are set is a good idea.
  3. Filter rules by

    • Antecedent:
      • Contains: will filter rules by matching space-separated regular expressions in antecedent items.
      • Min. items: minimum number of items that have to appear in an antecedent.
      • Max. items: maximum number of items that can appear in an antecedent.
    • Consequent:
      • Contains: will filter rules by matching space-separated regular expressions in consequent items.
      • Min. items: minimum number of items that have to appear in a consequent.
      • Max. items: maximum number of items that can appear in a consequent.

    If Apply these filters in search is ticked, the widget will limit the rule generation only to rules that match the filters. If unchecked, all rules are generated, but only the matching are shown.

  4. If Auto send selection is on, data instances that match the selected association rules are output automatically. Alternatively press Send selection.

Example

Association Rules can be used directly with the File widget.

_images/association-rules-example1.png

References and further reading

[1]: J. Han, J. Pei, Y. Yin, R. Mao. (2004) Mining Frequent Patterns without Candidate Generation: A Frequent-Pattern Tree Approach.

[2]: R. Agrawal, C. Aggarwal, V. Prasad. (2000) Depth first generation of long patterns.

Frequent Itemsets

Finds frequent itemsets in the data.

Inputs

  • Data: Data set

Outputs

  • Matching Data: Data instances matching the criteria.

The widget finds frequent items in a data set based on a measure of support for the rule.

_images/frequent-itemsets-stamped.png

  1. Information on the data set. ‘Expand all’ expands the frequent itemsets tree, while ‘Collapse all’ collapses it.
  2. In Find itemsets by you can set criteria for itemset search:
    • Minimal support: a minimal ratio of data instances that must support (contain) the itemset for it to be generated. For large data sets it is normal to set a lower minimal support (e.g. between 2%-0.01%).
    • Max. number of itemsets: limits the upward quantity of generated itemsets. Itemsets are generated in no particular order. If Auto find itemsets is on, the widget will run the search at every change of parameters. Might be slow for large data sets, so pressing Find itemsets only when the parameters are set is a good idea.
  3. Filter itemsets: If you’re looking for a specific item or itemsets, filter the results by regular expressions. Separate regular expressions by comma to filter by more than one word.
    • Contains: will filter itemsets by regular expressions.
    • Min. items: minimum number of items that have to appear in an itemset. If 1, all the itemsets will be displayed. Increasing it to, say, 4, will only display itemsets with four or more items.
    • Max. items: maximum number of items that are to appear in an itemset. If you wish to find, say, only itemsets with less than 5 items in it, you’d set this parameter to 5. If Apply these filters in search is ticked, the widget will filter the results in real time. Preferably not ticked for large data sets.
  4. If Auto send selection is on, changes are communicated automatically. Alternatively press Send selection.

Example

Frequent Itemsets can be used directly with the File widget.

_images/frequent-itemsets-example1.png

Scripting

Orange-Associate scripting documentation

Indices and tables