BaşlayınÜcretsiz Başlayın

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.

Bu egzersiz

Market Basket Analysis in R

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Apply the apriori function to the Online retail dataset
rules_online = apriori(___,
                    parameter = list(___ = 0.01, ___ = 0.8, minlen = ___))

# Inspect the first 5 rules
___(head(___, 5))
Kodu Düzenle ve Çalıştır