edu.cmu.minorthird.classify.transform
Class ChiSquareTransformLearner

java.lang.Object
  extended by edu.cmu.minorthird.classify.transform.ChiSquareTransformLearner
All Implemented Interfaces:
InstanceTransformLearner

public class ChiSquareTransformLearner
extends java.lang.Object
implements InstanceTransformLearner

Author:
Vitor R. Carvalho Date: March 2005 A simple feature filter based on the Chi-Squared statistic. The frequency model is resposible for deciding 'what to count'. If set to "document" this filter counts the number of documents which contain a Feature; if set to "word" this filter counts the number of times a Feature appears in the whole dataset.

Constructor Summary
ChiSquareTransformLearner()
           
ChiSquareTransformLearner(java.lang.String model)
           
 
Method Summary
 InstanceTransform batchTrain(Dataset dataset)
          Examine data, build an instance transformer
static void main(java.lang.String[] args)
           
 void setSchema(ExampleSchema schema)
          only accepts binary schemas
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChiSquareTransformLearner

public ChiSquareTransformLearner()

ChiSquareTransformLearner

public ChiSquareTransformLearner(java.lang.String model)
Method Detail

setSchema

public void setSchema(ExampleSchema schema)
only accepts binary schemas

Specified by:
setSchema in interface InstanceTransformLearner

batchTrain

public InstanceTransform batchTrain(Dataset dataset)
Examine data, build an instance transformer

Specified by:
batchTrain in interface InstanceTransformLearner

main

public static void main(java.lang.String[] args)