O'Reilly logo

Unsupervised Learning with R by Erik Rodríguez Pacheco

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exploring the association rules model

When we worked with the transaction file, we saw that it is stored in a special kind of object, which makes the models work in a similar way. This type of model is stored in a special object and its exploration also involves the use of specific commands.

Returning to our example, using the first version of the model, which we store in the rules object, we can perform an initial exploration by the summary function:

# Summary report of rules summary(rules) set of 410 rules rule length distribution (lhs + rhs):sizes 3 4 5 6 29 229 140 12 Min. 1st Qu. Median Mean 3rd Qu. Max. 3.0 4.0 4.0 4.3 5.0 6.0 summary of quality measures: support confidence lift Min. :0.00102 Min. :0.80 Min. : 3.1 1st Qu.:0.00102 1st Qu.:0.83 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required