public class WidrowHoffLearner extends AbstractLearner implements MimicryLearner, Prototypeable, Serializable
Modifier and Type | Field and Description |
---|---|
protected double |
currentOutput
The current output level.
|
static double |
DEFAULT_LEARNING_RATE |
protected double |
delta
The current amount of adjustment to the output.
|
protected double |
learningRate
The learning rate.
|
protected cern.jet.random.AbstractContinousDistribution |
randomParamDistribution |
monitor
Constructor and Description |
---|
WidrowHoffLearner() |
WidrowHoffLearner(cern.jet.random.AbstractContinousDistribution randomParamDistribution) |
WidrowHoffLearner(double learningRate,
cern.jet.random.AbstractContinousDistribution randomParamDistribution) |
WidrowHoffLearner(double learningRate,
cern.jet.random.engine.RandomEngine prng) |
Modifier and Type | Method and Description |
---|---|
double |
act()
Generate an output from the learning algorithm.
|
double |
delta(double target) |
void |
dumpState(DataWriter out)
Write out our state data to the specified data writer.
|
double |
getCurrentOutput() |
double |
getDelta() |
double |
getLearningDelta()
Return a value indicative of the amount of learning that occured during the
last iteration.
|
double |
getLearningRate() |
cern.jet.random.AbstractContinousDistribution |
getRandomParamDistribution() |
void |
initialise() |
Object |
protoClone() |
void |
randomInitialise()
Initialise with random values for free parameters
|
void |
reset() |
void |
setLearningRate(double learningRate) |
void |
setOutputLevel(double currentOutput)
Initialise the learning algorithm to output the supplied value.
|
void |
setRandomParamDistribution(cern.jet.random.AbstractContinousDistribution randomParamDistribution) |
String |
toString() |
void |
train(double target)
Provide a training signal to the learning algorithm.
|
monitor
protected double learningRate
protected double currentOutput
protected double delta
protected cern.jet.random.AbstractContinousDistribution randomParamDistribution
public static final double DEFAULT_LEARNING_RATE
public WidrowHoffLearner(double learningRate, cern.jet.random.AbstractContinousDistribution randomParamDistribution)
public WidrowHoffLearner(cern.jet.random.AbstractContinousDistribution randomParamDistribution)
public WidrowHoffLearner()
public WidrowHoffLearner(double learningRate, cern.jet.random.engine.RandomEngine prng)
public void initialise()
public Object protoClone()
protoClone
in interface Prototypeable
public double act()
ContinuousLearner
act
in interface ContinuousLearner
public void train(double target)
MimicryLearner
train
in interface MimicryLearner
public double delta(double target)
public void setOutputLevel(double currentOutput)
MimicryLearner
setOutputLevel
in interface MimicryLearner
public void dumpState(DataWriter out)
Learner
dumpState
in interface Learner
dumpState
in class AbstractLearner
public double getLearningDelta()
Learner
getLearningDelta
in interface Learner
getLearningDelta
in class AbstractLearner
public void reset()
public void setLearningRate(double learningRate)
public double getLearningRate()
public void randomInitialise()
MimicryLearner
randomInitialise
in interface MimicryLearner
public double getCurrentOutput()
public double getDelta()
public cern.jet.random.AbstractContinousDistribution getRandomParamDistribution()
public void setRandomParamDistribution(cern.jet.random.AbstractContinousDistribution randomParamDistribution)
Copyright © 2014. All rights reserved.