This operator uses a list of tuples and creates rules like "x => y".

A rule is a special datatype called "AssociationRule", which is principally a tuple of two patterns (one for the premise and one for the consequnce of the rule)

Parameter

  • ITEMSET: The attribute where to find the frequent itemset/pattern
  • SUPPORT: The attribute where to find the support of the pattern (this is used for calculating the confidence!)
  • CONFIDENCE: The minimal confidence of a rule in percent (a value between 0.0 and 1.0)

Example

This example generates only rule with a confidence of 60% or more

Operator
rule = GENERATERULES({
            itemset='set',
            confidence=0.6,
            support='support'
          },
          fpm)
  • No labels