Example usage for weka.associations FPGrowth setOptions

List of usage examples for weka.associations FPGrowth setOptions

Introduction

In this page you can find the example usage for weka.associations FPGrowth setOptions.

Prototype

@Override
public void setOptions(String[] options) throws Exception 

Source Link

Document

Parses a given list of options.

Usage

From source file:rdfsystem.data.DataMining.java

public static String assoiate(RdfManager manager) throws Exception {
    Instances ins = transformData(manager, false);

    FPGrowth ass = new FPGrowth();
    String[] options = "-T 0 -C 0.5 -M 0.1".split(" ");
    ass.setOptions(options);
    ass.buildAssociations(ins);/*w  w  w.ja  v a 2 s .c o m*/
    List<AssociationRule> res = ass.getAssociationRules();
    for (AssociationRule rule : res)
        System.out.println(rule);

    return null;
}