net.sourceforge.jabm.learning
Class WidrowHoffLearnerWithMomentum

java.lang.Object
  extended by net.sourceforge.jabm.learning.AbstractLearner
      extended by net.sourceforge.jabm.learning.WidrowHoffLearner
          extended by net.sourceforge.jabm.learning.WidrowHoffLearnerWithMomentum
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ContinuousLearner, Learner, MimicryLearner, Prototypeable

public class WidrowHoffLearnerWithMomentum
extends WidrowHoffLearner
implements java.io.Serializable

See Also:
Serialized Form
 

Field Summary
protected  double gamma
          cumulative discounted delta
protected  double momentum
           
 
Fields inherited from class net.sourceforge.jabm.learning.WidrowHoffLearner
currentOutput, DEFAULT_LEARNING_RATE, delta, learningRate, randomParamDistribution
 
Fields inherited from class net.sourceforge.jabm.learning.AbstractLearner
monitor
 
Constructor Summary
WidrowHoffLearnerWithMomentum()
           
WidrowHoffLearnerWithMomentum(cern.jet.random.AbstractContinousDistribution randomParamDistribution)
           
WidrowHoffLearnerWithMomentum(double learningRate, cern.jet.random.AbstractContinousDistribution randomParamDistribution)
           
 
Method Summary
 double getMomentum()
           
 void initialise()
           
 void randomInitialise()
          Initialise with random values for free parameters
 void setMomentum(double momentum)
           
 java.lang.String toString()
           
 void train(double target)
          Provide a training signal to the learning algorithm.
 
Methods inherited from class net.sourceforge.jabm.learning.WidrowHoffLearner
act, delta, dumpState, getCurrentOutput, getDelta, getLearningDelta, getLearningRate, getRandomParamDistribution, protoClone, reset, setLearningRate, setOutputLevel, setRandomParamDistribution
 
Methods inherited from class net.sourceforge.jabm.learning.AbstractLearner
monitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sourceforge.jabm.learning.Learner
monitor
 

Field Detail

gamma

protected double gamma
cumulative discounted delta


momentum

protected double momentum
Constructor Detail

WidrowHoffLearnerWithMomentum

public WidrowHoffLearnerWithMomentum(cern.jet.random.AbstractContinousDistribution randomParamDistribution)

WidrowHoffLearnerWithMomentum

public WidrowHoffLearnerWithMomentum(double learningRate,
                                     cern.jet.random.AbstractContinousDistribution randomParamDistribution)

WidrowHoffLearnerWithMomentum

public WidrowHoffLearnerWithMomentum()
Method Detail

initialise

public void initialise()
Overrides:
initialise in class WidrowHoffLearner

train

public void train(double target)
Description copied from interface: MimicryLearner
Provide a training signal to the learning algorithm.

Specified by:
train in interface MimicryLearner
Overrides:
train in class WidrowHoffLearner

randomInitialise

public void randomInitialise()
Description copied from interface: MimicryLearner
Initialise with random values for free parameters

Specified by:
randomInitialise in interface MimicryLearner
Overrides:
randomInitialise in class WidrowHoffLearner

getMomentum

public double getMomentum()

setMomentum

public void setMomentum(double momentum)

toString

public java.lang.String toString()
Overrides:
toString in class WidrowHoffLearner