|
||||||||||
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.EKFRNNLearnerPlugin
public class EKFRNNLearnerPlugin
A plugin listener that implements the EKF learner, based on "Some observations on the use of the extended Kalman filter as a recurrent network learning algorithm" by Williams (1992) in order to train a network. This should be attached to the desired output layer and will update weights whenever a new desired pattern is recovered.
Field Summary | |
---|---|
protected int |
cycleCount
Network cycle counter |
protected ExtendedKalmanFilterRNN |
ekf
The filter that will do the training |
protected Synapse |
errorPatternListener
The synapse we will use to catch the errors |
protected double |
kalmanBoost
The kalman boost factor |
protected double[] |
lastError
The most recently seen error |
protected int |
processorCount
Number of processors to use, if 2 or more, will use SMP |
protected int |
verbose
Zero for no verbosity, otherwise the number of patterns after which we croak |
Constructor Summary | |
---|---|
EKFRNNLearnerPlugin(double kalmanBoost,
int verbose)
The constructor |
|
EKFRNNLearnerPlugin(double kalmanBoost,
int verbose,
int processorCount)
The constructor |
Method Summary | |
---|---|
protected void |
attachErrorPatternListener()
Attach a synapse to the output layer to calculate the error pattern and update the EKF on line. |
static void |
main(java.lang.String[] args)
Execute one of the testers |
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 |
testEKF(java.lang.String[] args)
Test the EKF 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 ExtendedKalmanFilterRNN ekf
protected transient int cycleCount
protected transient double[] lastError
protected transient Synapse errorPatternListener
protected double kalmanBoost
protected int verbose
protected int processorCount
Constructor Detail |
---|
public EKFRNNLearnerPlugin(double kalmanBoost, int verbose, int processorCount)
public EKFRNNLearnerPlugin(double kalmanBoost, int verbose)
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 testEKF(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 |