शुरू करेंमुफ़्त में शुरू करें

Redundant rules

Once you have extracted rules using the apriori() algorithm, your job is not yet quite finished. You need to find out redundant rules among the extracted ones and only retain the non-redundant rules. This is crucial given the large number of rules you could have extracted using the apriori() function.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Market Basket Analysis in R

पाठ्यक्रम देखें

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Apply the apriori function to the Online retail dataset
rules = apriori(Online_trx,
                ___ = list(supp = ___, conf = ___, 
                                 minlen = 2))

# Inspect the first 5 rules
___(___(rules))
कोड संपादित करें और चलाएँ