O'Reilly logo

Practical Predictive Analytics by Ralph Winters

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

Generating many rules

If you wish to generate as many rules as possible, set support and confidence to a very low number:

 

many_rules <- apriori(trans4, parameter = list(minlen = 1, support = 0.01, confidence = 0.01)) > Apriori >  > Parameter specification: > confidence minval smax arem aval originalSupport support minlen maxlen > 0.01 0.1 1 none FALSE TRUE 0.01 1 10 > target ext > rules FALSE >  > Algorithmic control: > filter tree heap memopt load sort verbose > 0.1 TRUE TRUE FALSE TRUE 2 TRUE >  > Absolute minimum support count: 136  >  > set item appearances ...[0 item(s)] done [0.00s]. > set transactions ...[13 item(s), 13617 transaction(s)] done [0.00s]. > sorting and recoding items ... [13 item(s)] done [0.00s]. > creating transaction ...

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