|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.transform.AbstractInstanceTransform edu.cmu.minorthird.classify.transform.ChiSquareInstanceTransform
public class ChiSquareInstanceTransform
Constructor Summary | |
---|---|
ChiSquareInstanceTransform()
Default Constructor - numFeatures=100 |
|
ChiSquareInstanceTransform(int num)
Constructor - parameter is number of features |
Method Summary | |
---|---|
void |
addFeature(double infoGain,
Feature f)
Adds a score of feature f to the InstanceTransform |
Feature[] |
getTopFeatures(int top)
get top ranked features |
void |
setNumberOfFeatures(int number)
Number of features with the highest scores to keep in the dataset |
java.lang.String |
toString(int top)
displays the top ranked features and their scores |
Instance |
transform(Instance ins)
Transform an instance according to Info-Gain criterion |
Methods inherited from class edu.cmu.minorthird.classify.transform.AbstractInstanceTransform |
---|
transform, transform, transform, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChiSquareInstanceTransform()
public ChiSquareInstanceTransform(int num)
Method Detail |
---|
public Instance transform(Instance ins)
transform
in interface InstanceTransform
transform
in class AbstractInstanceTransform
public java.lang.String toString(int top)
public Feature[] getTopFeatures(int top)
public void setNumberOfFeatures(int number)
public void addFeature(double infoGain, Feature f)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |