edu.umass.cs.mallet.base.classify
Class MaxEnt

java.lang.Object
  extended byedu.umass.cs.mallet.base.classify.Classifier
      extended byedu.umass.cs.mallet.base.classify.MaxEnt
All Implemented Interfaces:
java.io.Serializable

public class MaxEnt
extends Classifier
implements java.io.Serializable

Maximum Entropy classifier.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.umass.cs.mallet.base.classify.Classifier
instancePipe
 
Constructor Summary
MaxEnt(Pipe dataPipe, double[] parameters)
           
MaxEnt(Pipe dataPipe, double[] parameters, FeatureSelection featureSelection)
           
MaxEnt(Pipe dataPipe, double[] parameters, FeatureSelection[] perClassFeatureSelection)
           
MaxEnt(Pipe dataPipe, double[] parameters, FeatureSelection featureSelection, FeatureSelection[] perClassFeatureSelection)
           
 
Method Summary
 Classification classify(Instance instance)
           
 void getClassificationScores(Instance instance, double[] scores)
           
 double[] getParameters()
           
 void getUnnormalizedClassificationScores(Instance instance, double[] scores)
           
 void print()
          Outputs human-readable description of classifier (e.g., list of weights, decision tree) to System.out
 void setParameter(int classIndex, int featureIndex, double value)
           
 
Methods inherited from class edu.umass.cs.mallet.base.classify.Classifier
classify, classify, classify, getAccuracy, getAccuracy, getAlphabet, getF1, getF1, getF1, getF1, getInstancePipe, getLabelAlphabet, getPrecision, getPrecision, getPrecision, getPrecision, getRecall, getRecall, getRecall, getRecall, print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxEnt

public MaxEnt(Pipe dataPipe,
              double[] parameters,
              FeatureSelection featureSelection,
              FeatureSelection[] perClassFeatureSelection)

MaxEnt

public MaxEnt(Pipe dataPipe,
              double[] parameters,
              FeatureSelection featureSelection)

MaxEnt

public MaxEnt(Pipe dataPipe,
              double[] parameters,
              FeatureSelection[] perClassFeatureSelection)

MaxEnt

public MaxEnt(Pipe dataPipe,
              double[] parameters)
Method Detail

getParameters

public double[] getParameters()

setParameter

public void setParameter(int classIndex,
                         int featureIndex,
                         double value)

getUnnormalizedClassificationScores

public void getUnnormalizedClassificationScores(Instance instance,
                                                double[] scores)

getClassificationScores

public void getClassificationScores(Instance instance,
                                    double[] scores)

classify

public Classification classify(Instance instance)
Specified by:
classify in class Classifier

print

public void print()
Description copied from class: Classifier
Outputs human-readable description of classifier (e.g., list of weights, decision tree) to System.out

Overrides:
print in class Classifier