|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--dragon.ml.seqmodel.crf.AbstractCRF
|
+--dragon.ml.seqmodel.crf.AbstractTrainer
Abstract class for training conditional random field
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Field Summary | |
protected boolean |
doScaling
|
protected int |
maxIteration
|
protected static double |
xtol
|
| Fields inherited from class dragon.ml.seqmodel.crf.AbstractCRF |
edgeGen, featureGenerator, lambda, model |
| Constructor Summary | |
AbstractTrainer(ModelGraph model,
FeatureGenerator featureGen)
|
|
| Method Summary | |
protected void |
genStateVector(DoubleDenseMatrix transMatrix,
double[] oldStateVector,
double[] newStateVector,
boolean transpose)
|
protected void |
genStateVectorLog(DoubleDenseMatrix transMatrix,
double[] oldStateVector,
double[] newStateVector,
boolean transpose)
|
int |
getMaxIteration()
Gets the number of maximum iterations |
boolean |
needScaling()
Gets the scaling option. |
void |
setMaxIteration(int maxIteration)
Sets the number of maximum iterations |
void |
setScalingOption(boolean option)
Sets the scaling option |
| Methods inherited from class dragon.ml.seqmodel.crf.AbstractCRF |
computeTransMatrix, computeTransMatrix, getFeatureGenerator, getModelGraph, getModelParameter, readModelParameter, saveModelParameter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface dragon.ml.seqmodel.crf.Trainer |
getFeatureGenerator, getModelGraph, getModelParameter, saveModelParameter, train |
| Field Detail |
protected static double xtol
protected boolean doScaling
protected int maxIteration
| Constructor Detail |
public AbstractTrainer(ModelGraph model,
FeatureGenerator featureGen)
| Method Detail |
public boolean needScaling()
Trainer
needScaling in interface Trainerpublic void setScalingOption(boolean option)
Trainer
setScalingOption in interface Traineroption - the scaling optionpublic int getMaxIteration()
Trainer
getMaxIteration in interface Trainerpublic void setMaxIteration(int maxIteration)
Trainer
setMaxIteration in interface TrainermaxIteration - the number of maximum iterations
protected void genStateVector(DoubleDenseMatrix transMatrix,
double[] oldStateVector,
double[] newStateVector,
boolean transpose)
protected void genStateVectorLog(DoubleDenseMatrix transMatrix,
double[] oldStateVector,
double[] newStateVector,
boolean transpose)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||