|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PRConstraint
Interface for PR constraint that considers either one or two states.
| Method Summary | |
|---|---|
void |
addExpectations(double[] expectations)
|
PRConstraint |
copy()
This is used in multi-threading. |
double |
getAuxiliaryValueContribution(double[] parameters)
|
double |
getCompleteValueContribution(double[] parameters)
|
void |
getExpectations(double[] expectations)
|
void |
getGradient(double[] parameters,
double[] gradient)
|
double |
getScore(FeatureVector input,
int inputPosition,
int srcIndex,
int destIndex,
double[] parameters)
|
void |
incrementExpectations(FeatureVector input,
int inputPosition,
int srcIndex,
int destIndex,
double prob)
|
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 |
setStateLabelMap(StateLabelMap map)
Sets that map between the state indices and label indices. |
void |
zeroExpectations()
Zero expectation values. |
| Method Detail |
|---|
int numDimensions()
double getScore(FeatureVector input,
int inputPosition,
int srcIndex,
int destIndex,
double[] parameters)
void incrementExpectations(FeatureVector input,
int inputPosition,
int srcIndex,
int destIndex,
double prob)
double getAuxiliaryValueContribution(double[] parameters)
double getCompleteValueContribution(double[] parameters)
void getGradient(double[] parameters,
double[] gradient)
void setStateLabelMap(StateLabelMap map)
map - StateLabelMapvoid zeroExpectations()
java.util.BitSet preProcess(InstanceList data)
data - Unlabeled data
void preProcess(FeatureVector input)
input - FeatureVector inputPRConstraint copy()
void getExpectations(double[] expectations)
void addExpectations(double[] expectations)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||