Examples of FPGrowth


Examples of weka.associations.FPGrowth

    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));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.