|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.fst.TransducerTrainer cc.mallet.fst.CRFTrainerByLabelLikelihood cc.mallet.fst.CRFTrainerByL1LabelLikelihood
public class CRFTrainerByL1LabelLikelihood
CRF trainer that implements L1-regularization.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cc.mallet.fst.TransducerTrainer |
---|
TransducerTrainer.ByIncrements, TransducerTrainer.ByInstanceIncrements, TransducerTrainer.ByOptimization |
Field Summary |
---|
Fields inherited from class cc.mallet.fst.CRFTrainerByLabelLikelihood |
---|
printGradient |
Constructor Summary | |
---|---|
CRFTrainerByL1LabelLikelihood(CRF crf)
|
|
CRFTrainerByL1LabelLikelihood(CRF crf,
double l1Weight)
Constructor for CRF trainer. |
Method Summary | |
---|---|
Optimizer |
getOptimizer(InstanceList trainingSet)
|
void |
setL1RegularizationWeight(double l1Weight)
|
Methods inherited from class cc.mallet.fst.TransducerTrainer |
---|
addEvaluator, addEvaluators, removeEvaluator, runEvaluators, train |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CRFTrainerByL1LabelLikelihood(CRF crf)
public CRFTrainerByL1LabelLikelihood(CRF crf, double l1Weight)
crf
- CRF to train.l1Weight
- Weight of L1 term in objective (l1Weight*|w|). Higher L1
weight means sparser solutions.Method Detail |
---|
public void setL1RegularizationWeight(double l1Weight)
public Optimizer getOptimizer(InstanceList trainingSet)
getOptimizer
in class CRFTrainerByLabelLikelihood
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |