Package samer.models
Class DiffScaler.ScaleTrainer
- java.lang.Object
-
- samer.tools.AnonymousTask
-
- samer.models.DiffScaler.ScaleTrainer
-
- All Implemented Interfaces:
- Model.Trainer, Task
- Enclosing class:
- DiffScaler
public class DiffScaler.ScaleTrainer extends AnonymousTask implements Model.Trainer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ScaleTrainer()
-
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 resetVDoublegetScaleRate()VDoublegetStretchRate()voidoneshot()Must be equivalent to reset(); accumulate(); flush(); but can be optimised for non-batched trainingvoidreset()reset accumulators without updating parametersvoidrun()voidstarting()java.lang.StringtoString()-
Methods inherited from class samer.tools.AnonymousTask
stopping
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getScaleRate
public VDouble getScaleRate()
-
getStretchRate
public VDouble getStretchRate()
-
reset
public void reset()
Description copied from interface:Model.Trainerreset accumulators without updating parameters- Specified by:
resetin 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
-
flush
public void flush()
Description copied from interface:Model.Traineruse collected stats to update parameters and reset- Specified by:
flushin 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
-
dispose
public void dispose()
- Specified by:
disposein interfaceModel.Trainer- Specified by:
disposein interfaceTask- Overrides:
disposein classAnonymousTask
-
starting
public void starting()
- Specified by:
startingin interfaceTask- Overrides:
startingin classAnonymousTask
-
-