November 2018
Intermediate to advanced
300 pages
7h 42m
English
We will use the Apriori algorithm as implemented in Weka. It iteratively reduces the minimum support until it finds the required number of rules with the given minimum confidence. We'll implement the algorithm using the following steps:
import java.io.BufferedReader; import java.io.FileReader; import weka.core.Instances; import weka.associations.Apriori;
Instances data = new Instances(new BufferedReader(new FileReader("data/supermarket.arff")));
Apriori model = new Apriori(); ...