|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.classify.constraints.ge.MaxEntFLGEConstraints cc.mallet.classify.constraints.ge.MaxEntL2FLGEConstraints
public class MaxEntL2FLGEConstraints
Expectation constraint for use with GE. Penalizes L_2^2 difference from target expectation. Multiple constraints are grouped together here to make things more efficient.
Nested Class Summary | |
---|---|
protected class |
MaxEntL2FLGEConstraints.MaxEntL2FLGEConstraint
|
Nested classes/interfaces inherited from class cc.mallet.classify.constraints.ge.MaxEntFLGEConstraints |
---|
MaxEntFLGEConstraints.MaxEntFLGEConstraint |
Field Summary |
---|
Fields inherited from class cc.mallet.classify.constraints.ge.MaxEntFLGEConstraints |
---|
constraints, indexCache, numFeatures, numLabels, useValues, valueCache |
Constructor Summary | |
---|---|
MaxEntL2FLGEConstraints(int numFeatures,
int numLabels,
boolean useValues,
boolean normalize)
|
Method Summary | |
---|---|
void |
addConstraint(int fi,
double[] ex,
double weight)
|
double |
getValue()
Returns the total constraint value. |
Methods inherited from class cc.mallet.classify.constraints.ge.MaxEntFLGEConstraints |
---|
computeExpectations, getCompositeConstraintFeatureValue, preProcess, preProcess, zeroExpectations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MaxEntL2FLGEConstraints(int numFeatures, int numLabels, boolean useValues, boolean normalize)
Method Detail |
---|
public double getValue()
MaxEntGEConstraint
public void addConstraint(int fi, double[] ex, double weight)
addConstraint
in class MaxEntFLGEConstraints
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |