BufferedReader br = new BufferedReader(new FileReader(arffout));
Instances inst = new Instances(br);
br.close();
FPGrowth fp = new FPGrowth();
fp.setLowerBoundMinSupport(5.0);
fp.setNumRulesToFind(100000);
fp.setUpperBoundMinSupport(1.0);
fp.setMinMetric(.0);
fp.buildAssociations(inst);
List<FPGrowth.AssociationRule> rules = fp.getAssociationRules();
Set fpgrowth = new TreeSet();
String pattern;
PrintWriter writer;
writer = new PrintWriter(new FileWriter(fpout));