edu.cmu.minorthird.classify.transform
Class OrderBasedInstanceTransform

java.lang.Object
  extended by edu.cmu.minorthird.classify.transform.OrderBasedInstanceTransform
All Implemented Interfaces:
InstanceTransform

public class OrderBasedInstanceTransform
extends java.lang.Object
implements InstanceTransform

Author:
Edoardo M. Airoldi Date: Feb 6, 2004

Constructor Summary
OrderBasedInstanceTransform()
          Constructor
 
Method Summary
 void addFeatureVal(double infoGain, Feature f)
          Adds the Info-Gain score of feature f to the InstanceTransform
 void setNumberOfFeatures(int number)
          Number of features with the highest Info-Gain scores to keep in the dataset
 Dataset transform(Dataset dataset)
          Transform a dataset according to Info-Gain criterion
 Example transform(Example example)
          Not used
 Instance transform(Instance instance)
          Not used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderBasedInstanceTransform

public OrderBasedInstanceTransform()
Constructor

Method Detail

transform

public Instance transform(Instance instance)
Not used

Specified by:
transform in interface InstanceTransform

transform

public Example transform(Example example)
Not used

Specified by:
transform in interface InstanceTransform

transform

public Dataset transform(Dataset dataset)
Transform a dataset according to Info-Gain criterion

Specified by:
transform in interface InstanceTransform

setNumberOfFeatures

public void setNumberOfFeatures(int number)
Number of features with the highest Info-Gain scores to keep in the dataset


addFeatureVal

public void addFeatureVal(double infoGain,
                          Feature f)
Adds the Info-Gain score of feature f to the InstanceTransform