|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.transform.D2TransformLearner
public class D2TransformLearner
Constructor Summary | |
---|---|
D2TransformLearner()
|
Method Summary | |
---|---|
InstanceTransform |
batchTrain(Dataset dataset)
Examine data, build an instance transformer |
double |
getLength(Example e)
Get the total number of words in an Example |
static void |
main(java.lang.String[] args)
|
java.util.TreeMap<java.lang.String,java.lang.Number> |
mudelta2np(double mu,
double delta,
double omega)
|
void |
setALPHA(double desiredLevel)
Set ALPHA to the desired level |
void |
setClassParameter(int j,
double d)
Set probability of class j to d |
void |
setFeatureGivenClassParameter(Feature f,
int j,
Estimate pms)
|
void |
setFeaturePdf(Feature f,
java.lang.String pdf)
Set the PDF for feature f |
void |
setMAX_WORDS(int number)
Set MAX_WORDS to the desired number |
void |
setMIN_WORDS(int number)
Set MIN_WORDS to the desired number |
void |
setPDF(java.lang.String pdf)
Set PDF to the desired value |
void |
setREF_LENGTH(double desiredLength)
Set REF_LENGTH to the desired value |
void |
setSAMPLE(int size)
Set SAMPLE SIZE to the desired level |
void |
setSchema(ExampleSchema schema)
ExampleSchema not used here ... |
double |
T1(int x1,
int x2)
Compute the T1 statistic corresponding to the counts in two texts |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public D2TransformLearner()
Method Detail |
---|
public void setSchema(ExampleSchema schema)
setSchema
in interface InstanceTransformLearner
public InstanceTransform batchTrain(Dataset dataset)
batchTrain
in interface InstanceTransformLearner
public void setFeaturePdf(Feature f, java.lang.String pdf)
public void setClassParameter(int j, double d)
public void setFeatureGivenClassParameter(Feature f, int j, Estimate pms)
public java.util.TreeMap<java.lang.String,java.lang.Number> mudelta2np(double mu, double delta, double omega)
public double getLength(Example e)
public double T1(int x1, int x2)
public void setREF_LENGTH(double desiredLength)
public void setPDF(java.lang.String pdf)
public void setMIN_WORDS(int number)
public void setMAX_WORDS(int number)
public void setSAMPLE(int size)
public void setALPHA(double desiredLevel)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |