public class RTRLLearnerPlugin extends MonitorPlugin
Modifier and Type | Field and Description |
---|---|
protected boolean |
adaptLearningRate
True if we are allowed to adapt the internal learning rate
|
protected int |
cycleCount
Network cycle counter
|
protected Synapse |
errorPatternListener
The synapse we will use to catch the errors
|
protected double[] |
lastError
The most recently seen error
|
protected double |
learningRate
The internal learning rate
|
protected double |
minLearningRate
The minimum allowable learning rate
|
protected double |
prevError
The previous error
|
protected int |
processorCount
Number of processors to use, 1 or less on uniprocessors
|
protected RTRL |
rtrl
The RTRL that will do the training
|
Constructor and Description |
---|
RTRLLearnerPlugin(boolean adaptLearningRate,
int processorCount)
The constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
attachErrorPatternListener()
Attach a synapse to the output layer to calculate the error pattern and
update the RTRL
|
static void |
main(java.lang.String[] args)
Execute one of the tests
|
protected void |
manageCycle(Monitor mon) |
protected void |
manageError(Monitor mon) |
protected void |
manageStart(Monitor mon) |
protected void |
manageStop(Monitor mon) |
protected void |
manageStopError(Monitor mon,
java.lang.String msgErr) |
static void |
testRTRL(java.lang.String[] args)
Test the RTRL learner
|
cicleTerminated, errorChanged, getName, getNeuralNet, getRate, netStarted, netStopped, netStoppedError, setName, setNeuralNet, setRate, toBeManaged
protected transient RTRL rtrl
protected transient int cycleCount
protected transient double[] lastError
protected transient Synapse errorPatternListener
protected transient double prevError
protected transient double learningRate
protected transient double minLearningRate
protected transient boolean adaptLearningRate
protected int processorCount
public RTRLLearnerPlugin(boolean adaptLearningRate, int processorCount)
protected void attachErrorPatternListener()
protected void manageStop(Monitor mon)
manageStop
in class MonitorPlugin
protected void manageCycle(Monitor mon)
manageCycle
in class MonitorPlugin
protected void manageStart(Monitor mon)
manageStart
in class MonitorPlugin
protected void manageError(Monitor mon)
manageError
in class MonitorPlugin
protected void manageStopError(Monitor mon, java.lang.String msgErr)
manageStopError
in class MonitorPlugin
public static void testRTRL(java.lang.String[] args)
public static void main(java.lang.String[] args)
Submit Feedback to pmarrone@users.sourceforge.net