|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.transform.InfoGainInstanceTransform
public class InfoGainInstanceTransform
Constructor Summary | |
---|---|
InfoGainInstanceTransform()
Constructor |
Method Summary | |
---|---|
void |
addFeatureIG(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 |
java.lang.String |
toString(int top)
get top ranked features |
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 |
---|
public InfoGainInstanceTransform()
Method Detail |
---|
public Instance transform(Instance instance)
transform
in interface InstanceTransform
public Example transform(Example example)
transform
in interface InstanceTransform
public Dataset transform(Dataset dataset)
transform
in interface InstanceTransform
public void setNumberOfFeatures(int number)
public void addFeatureIG(double infoGain, Feature f)
public java.lang.String toString(int top)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |