wpi.associations
Class Associator

java.lang.Object
  extended byweka.associations.Associator
      extended bywpi.associations.Associator
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
AprioriSets, AprioriSetsAndSequences

public abstract class Associator
extends weka.associations.Associator

Abstract class that measures the time it takes to mine frequent itemsets and reports this to standard out.

Version:
1.0
Author:
Keith A. Pray (kap@wpi.edu)
See Also:
Serialized Form

Field Summary
private static int debug
          Specifies debug info level 0: no debug info 1: input to methods 2: and output from methods 3: and all sorts of stuff
protected  Logger logger
          The object responsible for logging.
protected  java.lang.String logStatsFileName
          The name of the log file to write to.
 
Constructor Summary
Associator()
           
 
Method Summary
 void buildAssociations(weka.core.Instances data)
          Generates an associator.
abstract  void mineAssociations(weka.core.Instances data)
          Generates an associator.
 
Methods inherited from class weka.associations.Associator
forName, makeCopies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected Logger logger
The object responsible for logging.


logStatsFileName

protected java.lang.String logStatsFileName
The name of the log file to write to.


debug

private static final int debug
Specifies debug info level 0: no debug info 1: input to methods 2: and output from methods 3: and all sorts of stuff

See Also:
Constant Field Values
Constructor Detail

Associator

public Associator()
Method Detail

mineAssociations

public abstract void mineAssociations(weka.core.Instances data)
                               throws java.lang.Exception
Generates an associator. Must initialize all fields of the associator that are not being set via options (ie. multiple calls of buildAssociator must always lead to the same result). Must not change the dataset in any way. This takes the place of the WEKA buildAssociations method.

Parameters:
data - set of instances serving as training data
Throws:
java.lang.Exception - if the associator has not been generated successfully

buildAssociations

public void buildAssociations(weka.core.Instances data)
                       throws java.lang.Exception
Generates an associator. Must initialize all fields of the associator that are not being set via options (ie. multiple calls of buildAssociator must always lead to the same result). Must not change the dataset in any way.

Parameters:
data - set of instances serving as training data
Throws:
java.lang.Exception - if the associator has not been generated successfully