LoslegenKostenlos loslegen

Parameters of the apriori

The apriori() algorithm requires some input arguments such as the minimum support threshold and confidence levels. It is important to figure out how sensitive the set of extracted rules is to these parameters. In this exercise, you will use the transactions of the Online retail dataset Online_trx and apply the apriori() algorithm with different values for the input parameters.

Diese Übung ist Teil des Kurses

Market Basket Analysis in R

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

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

# Inspect the first rules
inspect(head(___))
Code bearbeiten und ausführen