Session Ready
Exercise

Changing the appearance of rules

It may happen that you do not want to calculate the confidence and lift measures for all rules, but rather some specific rules or some specific items. Adding constraints such as specifying items on the left and right hand side of the rules is of primary interest, especially if the number of items is very large. In this exercise, you will calculate the confidence and lift of rules containing the specific item HERB MARKER ROSEMARY. However, this item can either be on the left hand side of the rule or the right hand side of it.

The transactional object Online_trx is loaded in the workspace.

Instructions 1/3
undefined XP
  • 1
    • Find the confidence and lift for all rules having the item HERB MARKER ROSEMARY on the right hand side of the rule.
    • 2
      • Find the confidence and lift for all rules having the item HERB MARKER ROSEMARY on the left hand side of the rule.
    • 3
      • Combine the set of rules from rules_rosemary_rhs and rules_rosemary_lhs and inspect the union of the set of rules.