The Encog Project

org.encog.neural.networks.training.propagation
Class Propagation

java.lang.Object
  extended by org.encog.neural.networks.training.BasicTraining
      extended by org.encog.neural.networks.training.propagation.Propagation
All Implemented Interfaces:
Train
Direct Known Subclasses:
Backpropagation, ManhattanPropagation, ResilientPropagation

public class Propagation
extends BasicTraining

Implements basic functionality that is needed by each of the propagation methods. The specifics of each of the propagation methods is implemented inside of the PropagationMethod interface implementors.

Author:
jheaton

Constructor Summary
Propagation(BasicNetwork network, PropagationMethod method, NeuralDataSet training)
          Construct a propagation trainer.
 
Method Summary
 int getBatchSize()
           
 BasicNetwork getNetwork()
          Get the current best network from the training.
 PropagationUtil getPropagationUtil()
           
 void iteration()
          Perform one iteration of training.
 void setBatchSize(int batchSize)
          Set the batch size.
 
Methods inherited from class org.encog.neural.networks.training.BasicTraining
addStrategy, finishTraining, getError, getStrategies, getTraining, postIteration, preIteration, setError, setTraining
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Propagation

public Propagation(BasicNetwork network,
                   PropagationMethod method,
                   NeuralDataSet training)
Construct a propagation trainer.

Parameters:
network - The network to train.
method - The propagation method to use.
training - The training data to use.
Method Detail

getBatchSize

public int getBatchSize()
Returns:
Get the batch size. See batchSize property for a complete description.

getNetwork

public BasicNetwork getNetwork()
Description copied from interface: Train
Get the current best network from the training.

Returns:
THe network being trained.

getPropagationUtil

public PropagationUtil getPropagationUtil()
Returns:
The propagation utility to use.

iteration

public void iteration()
Perform one iteration of training. Note: if you get a StackOverflowError while training, then you have endless recurrent loops. Try inserting no trainable synapses on one side of the loop.


setBatchSize

public void setBatchSize(int batchSize)
Set the batch size. See batchSize property for a complete description.

Parameters:
batchSize - The batch training size.

The Encog Project