|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MaxEntGEConstraint
Interface for expectation constraints for use with Generalized Expectation (GE).
| Method Summary | |
|---|---|
void |
computeExpectations(FeatureVector fv,
double[] dist,
double weight)
Compute expectations using provided distribution over labels. |
double |
getCompositeConstraintFeatureValue(FeatureVector input,
int label)
Computes the composite constraint feature value (over all constraint features) for FeatureVector fv and label label. |
double |
getValue()
Returns the total constraint value. |
void |
preProcess(FeatureVector input)
Gives the constraint the option to do some caching using only the FeatureVector. |
java.util.BitSet |
preProcess(InstanceList data)
|
void |
zeroExpectations()
Zero expectation values. |
| Method Detail |
|---|
double getCompositeConstraintFeatureValue(FeatureVector input,
int label)
input - input FeatureVectorlabel - output label index
double getValue()
void computeExpectations(FeatureVector fv,
double[] dist,
double weight)
fv - FeatureVectordist - Distribution over labelsdata - Unlabeled datavoid zeroExpectations()
java.util.BitSet preProcess(InstanceList data)
data - Unlabeled data
void preProcess(FeatureVector input)
input - FeatureVector input
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||