The Encog Project

org.encog.neural.networks.training.propagation.multi
Class MPROPWorker

java.lang.Object
  extended by org.encog.neural.networks.training.propagation.multi.MPROPWorker
All Implemented Interfaces:
java.lang.Runnable

public class MPROPWorker
extends java.lang.Object
implements java.lang.Runnable

Worker process for MPROP training. Each worker is given a segment of the training data. The workers then train individual neural networks based on this training set. Results are merged back with the main neural network each iteration.


Constructor Summary
MPROPWorker(BasicNetwork network, Indexable training, MultiPropagation owner, long low, long high)
          Construct a MPROP worker.
 
Method Summary
 double getError()
           
 MPROPWorker getNext()
           
 PropagationUtil getPropagationUtil()
           
 void run()
          The thread entry point.
 void setError(double error)
          Set the error for this worker.
 void setNext(MPROPWorker next)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MPROPWorker

public MPROPWorker(BasicNetwork network,
                   Indexable training,
                   MultiPropagation owner,
                   long low,
                   long high)
Construct a MPROP worker.

Parameters:
network - The individual network for this worker, this is cloned from the master.
training - The training set to use.
owner - The MultiPropagation object that this worker belongs to.
low - The low training index.
high - The high training index.
Method Detail

getError

public double getError()
Returns:
The error for this worker's last iteration.

getNext

public MPROPWorker getNext()
Returns:
The next worker in the ring.

getPropagationUtil

public PropagationUtil getPropagationUtil()
Returns:
The propagation utility used.

run

public void run()
The thread entry point. This will execute iterations until a shutdown is requested.

Specified by:
run in interface java.lang.Runnable

setError

public void setError(double error)
Set the error for this worker.

Parameters:
error - The error.

setNext

public void setNext(MPROPWorker next)
Parameters:
next - The previous worker in the ring.

The Encog Project