|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.transform.InfoGainTransformLearner2
public class InfoGainTransformLearner2
Constructor Summary | |
---|---|
InfoGainTransformLearner2()
Default constructor, limits to 100 features |
|
InfoGainTransformLearner2(int numFeatures)
This will "learn" an InstanceTransform that discards with low info gain. |
|
InfoGainTransformLearner2(int numFeatures,
java.lang.String frequencyModel)
|
Method Summary | |
---|---|
InstanceTransform |
batchTrain(Dataset dataset)
Examine data, build an instance transformer |
double |
Entropy(double[] p,
double tot)
compute the entropy of a non-binary attribute |
double |
entropy(double P1,
double P2)
compute the entropy of a binary attribute |
void |
setSchema(ExampleSchema schema)
The schema's not used here... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InfoGainTransformLearner2()
public InfoGainTransformLearner2(int numFeatures)
public InfoGainTransformLearner2(int numFeatures, java.lang.String frequencyModel)
Method Detail |
---|
public void setSchema(ExampleSchema schema)
setSchema
in interface InstanceTransformLearner
public InstanceTransform batchTrain(Dataset dataset)
InstanceTransformLearner
batchTrain
in interface InstanceTransformLearner
public double entropy(double P1, double P2)
public double Entropy(double[] p, double tot)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |