8.5 apriori train

UNDER DEVELOPMENT 20211217

ml train apriori [options] [datafile]
     -c <0-1>      --confidence=<0-1>   Minimum confidence threshold.
     -i <name>     --id=<name>          The id column name.
     -s <0-1>      --support=<0-1>      Minimum support threshold.

Input file is a two column csv file, which is obtained from stdin if no data filename is supplied. The expected format:

id,item
u1234567,comp1234
u1234567,comp2345
u1234567,comp3456
u1234567,comp4567
u1234568,comp1234
u1234568,comp4567
...

Output is a row for each association rule:

rule,support,confidence,coverage,lift,count
comp1234:comp2345=>comp4567,0.6,1.0,0.6,1.4,6
...


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0