|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.transform.T1InstanceTransformLearner
public class T1InstanceTransformLearner
Constructor Summary | |
---|---|
T1InstanceTransformLearner()
|
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)
|
double |
MaximumLikelihoodPoisson(double[] x,
double[] omega,
double prior)
Compute the maximum likelihood estimate of the rate 'mu' of a Poisson model, using integer counts x[] from examples with different lengths omega[]. |
java.util.SortedMap<java.lang.String,java.lang.Double> |
MethodOfMomentsNegBin(double[] x,
double[] omega,
double prior)
Compute the method of moment estimates of the rate 'mu' and the parameter which controls the variability 'delta' of a Negative-Binomial models, using integer counts x[] from examples with different lengths omega[]. |
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 |
setSchema(ExampleSchema schema)
Accept an ExampleSchema - constraints on what the Examples will be. |
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 T1InstanceTransformLearner()
Method Detail |
---|
public void setSchema(ExampleSchema schema)
setSchema
in interface InstanceTransformLearner
public InstanceTransform batchTrain(Dataset dataset)
batchTrain
in interface InstanceTransformLearner
public double getLength(Example e)
public double T1(int x1, int x2)
public double MaximumLikelihoodPoisson(double[] x, double[] omega, double prior)
public java.util.SortedMap<java.lang.String,java.lang.Double> MethodOfMomentsNegBin(double[] x, double[] omega, double prior)
public void setREF_LENGTH(double desiredLength)
public void setPDF(java.lang.String pdf)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |