|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MaxEntPRConstraint
Interface for expectation constraints for use with Posterior Regularization (PR).
Method Summary | |
---|---|
double |
getAuxiliaryValueContribution(double[] parameters)
|
double |
getCompleteValueContribution()
|
void |
getGradient(double[] parameters,
double[] gradient)
|
double |
getScore(FeatureVector input,
int label,
double[] parameters)
|
void |
incrementExpectations(FeatureVector fv,
double[] dist,
double weight)
|
int |
numDimensions()
|
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 |
---|
int numDimensions()
double getScore(FeatureVector input, int label, double[] parameters)
void incrementExpectations(FeatureVector fv, double[] dist, double weight)
double getAuxiliaryValueContribution(double[] parameters)
double getCompleteValueContribution()
void getGradient(double[] parameters, double[] gradient)
void 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 |