Session Ready
Exercise

Let's go shopping for rules

It is now time to extract a first set of rules from the Online Retail dataset. Which rules can be inferred from the different baskets we have? Let's see how valuable this information can be.

The transactional object Online_trx is loaded in the workspace. Let's apply the apriori() algorithm on the Online retail dataset to extract some rules.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • Apply the apriori function to the Online retail dataset with the following parameters: minimum support 0.01, minimum confidence of 0.8 and disallow rules with empty sets. Inspect the first 5 rules.