Package samer.models
Class Mixture.Trainer
- java.lang.Object
-
- samer.models.Mixture.Trainer
-
- All Implemented Interfaces:
- Model.Trainer
- Enclosing class:
- Mixture
public class Mixture.Trainer extends java.lang.Object implements Model.Trainer
-
-
Constructor Summary
Constructors Constructor and Description Trainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaccumulate()collect statistics for parameter updatevoidaccumulate(double w)weighted accumulatevoiddispose()voidflush()use collected stats to update parameters and resetvoidoneshot()Must be equivalent to reset(); accumulate(); flush(); but can be optimised for non-batched trainingvoidreset()reset accumulators without updating parametersvoidsetTrainer(int i, Model.Trainer t)
-
-
-
Method Detail
-
setTrainer
public void setTrainer(int i, Model.Trainer t)
-
dispose
public void dispose()
- Specified by:
disposein interfaceModel.Trainer
-
accumulate
public void accumulate()
Description copied from interface:Model.Trainercollect statistics for parameter update- Specified by:
accumulatein interfaceModel.Trainer
-
accumulate
public void accumulate(double w)
Description copied from interface:Model.Trainerweighted accumulate- Specified by:
accumulatein interfaceModel.Trainer
-
oneshot
public void oneshot()
Description copied from interface:Model.TrainerMust be equivalent to reset(); accumulate(); flush(); but can be optimised for non-batched training- Specified by:
oneshotin interfaceModel.Trainer
-
flush
public void flush()
Description copied from interface:Model.Traineruse collected stats to update parameters and reset- Specified by:
flushin interfaceModel.Trainer
-
reset
public void reset()
Description copied from interface:Model.Trainerreset accumulators without updating parameters- Specified by:
resetin interfaceModel.Trainer
-
-