|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.util.MonitorPlugin
org.joone.engine.RTRLLearnerPlugin
public class RTRLLearnerPlugin
A plugin listener that applies the RTRL algorithm to a network.
Field Summary | |
---|---|
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 Summary | |
---|---|
RTRLLearnerPlugin(boolean adaptLearningRate,
int processorCount)
The constructor |
Method Summary | |
---|---|
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 |
Methods inherited from class org.joone.util.MonitorPlugin |
---|
cicleTerminated, errorChanged, getName, getNeuralNet, getRate, netStarted, netStopped, netStoppedError, setName, setNeuralNet, setRate, toBeManaged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public RTRLLearnerPlugin(boolean adaptLearningRate, int processorCount)
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |