public class SlidingWindowLearner extends AbstractLearner implements MimicryLearner, SelfKnowledgable, Prototypeable, Serializable
Modifier and Type | Field and Description |
---|---|
protected double |
currentOutput
The current output level.
|
protected FixedLengthQueue |
memory |
static String |
P_DEF_BASE |
static String |
P_WINDOWSIZE |
protected cern.jet.random.AbstractContinousDistribution |
randomParamDistribution |
protected int |
windowSize
A parameter used to adjust the size of the window
|
monitor
Constructor and Description |
---|
SlidingWindowLearner(cern.jet.random.AbstractContinousDistribution randomParamDistribution) |
SlidingWindowLearner(cern.jet.random.engine.RandomEngine prng) |
Modifier and Type | Method and Description |
---|---|
double |
act()
Generate an output from the learning algorithm.
|
protected void |
createMemory() |
void |
dumpState(DataWriter out)
Write out our state data to the specified data writer.
|
double |
getCurrentOutput() |
double |
getLearningDelta()
Return a value indicative of the amount of learning that occured during the
last iteration.
|
int |
getWindowSize() |
boolean |
goodEnough() |
void |
initialise() |
Object |
protoClone() |
void |
randomInitialise()
Initialise with random values for free parameters
|
void |
reset() |
void |
setOutputLevel(double currentOutput)
no effect on FixedLengthQueue-based next output!
|
void |
setWindowSize(int windowSize) |
String |
toString() |
void |
train(double target)
Provide a training signal to the learning algorithm.
|
monitor
protected cern.jet.random.AbstractContinousDistribution randomParamDistribution
protected int windowSize
public static final String P_WINDOWSIZE
protected double currentOutput
public static final String P_DEF_BASE
protected FixedLengthQueue memory
public SlidingWindowLearner(cern.jet.random.engine.RandomEngine prng)
public SlidingWindowLearner(cern.jet.random.AbstractContinousDistribution randomParamDistribution)
public void initialise()
public void reset()
public void randomInitialise()
MimicryLearner
randomInitialise
in interface MimicryLearner
public void setWindowSize(int windowSize)
public int getWindowSize()
protected void createMemory()
public double act()
ContinuousLearner
act
in interface ContinuousLearner
public void train(double target)
MimicryLearner
train
in interface MimicryLearner
public void dumpState(DataWriter out)
Learner
dumpState
in interface Learner
dumpState
in class AbstractLearner
public double getCurrentOutput()
public void setOutputLevel(double currentOutput)
setOutputLevel
in interface MimicryLearner
public double getLearningDelta()
Learner
getLearningDelta
in interface Learner
getLearningDelta
in class AbstractLearner
public Object protoClone()
protoClone
in interface Prototypeable
public boolean goodEnough()
goodEnough
in interface SelfKnowledgable
Copyright © 2014. All rights reserved.