|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcalhoun.analysis.crf.solver.FixedWeightOptimizer
public class FixedWeightOptimizer
a dummy optimizer that just fixed the weights at values specified in the configuration. If no weights are specified, then a default all weights being fixed at 1.0 is used.
| Constructor Summary | |
|---|---|
FixedWeightOptimizer()
|
|
| Method Summary | |
|---|---|
double[] |
getStarts()
gets the fixed weights that will be used in place of an optimization. |
double[] |
optimize(ModelManager fm,
java.util.List<? extends TrainingSequence<?>> data)
find the set of weights which maximizes the value of the objective function. |
void |
setStarts(double[] starts)
sets the values to use as feature weights. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedWeightOptimizer()
| Method Detail |
|---|
public double[] optimize(ModelManager fm,
java.util.List<? extends TrainingSequence<?>> data)
CRFTrainingCRFObjectiveFunctionGradient object will already
be configured witht eh appropriate training data, so it appears here as a pure function evaluation.
optimize in interface CRFTrainingfm - the model to train on.data - the training data to use for training.
public double[] getStarts()
public void setStarts(double[] starts)
setStarts in interface CRFTrainingstarts - array of feature weights to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||