|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Prior
This interface allows one to implement a prior distribution for use in maximum entropy model training.
Method Summary | |
---|---|
void |
logPrior(double[] dist,
int[] context)
Populates the specified array with the the log of the distribution for the specified context. |
void |
logPrior(double[] dist,
int[] context,
float[] values)
Populates the specified array with the the log of the distribution for the specified context. |
void |
setLabels(String[] outcomeLabels,
String[] contextLabels)
Method to specify the label for the outcomes and contexts. |
Method Detail |
---|
void logPrior(double[] dist, int[] context)
dist
- An array to be populated with the log of the prior distribution.context
- The indices of the contextual predicates for an event.void logPrior(double[] dist, int[] context, float[] values)
dist
- An array to be populated with the log of the prior distribution.context
- The indices of the contextual predicates for an event.values
- The values associated with the context.void setLabels(String[] outcomeLabels, String[] contextLabels)
outcomeLabels
- An array of each outcome label.contextLabels
- An array of each context label.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |