The Encog Project

org.encog.neural.networks.training.anneal
Class NeuralSimulatedAnnealing

java.lang.Object
  extended by org.encog.neural.networks.training.BasicTraining
      extended by org.encog.neural.networks.training.anneal.NeuralSimulatedAnnealing
All Implemented Interfaces:
Train

public class NeuralSimulatedAnnealing
extends BasicTraining

This class implements a simulated annealing training algorithm for feed forward neural networks. It is based on the generic SimulatedAnnealing class. It is used in the same manner as any other training class that implements the Train interface.


Field Summary
static double CUT
          The cutoff for random data.
 
Constructor Summary
NeuralSimulatedAnnealing(BasicNetwork network, NeuralDataSet training, double startTemp, double stopTemp, int cycles)
          Construct a simulated annleaing trainer for a feedforward neural network.
 
Method Summary
 BasicNetwork getNetwork()
          Get the best network from the training.
 void iteration()
          Perform one iteration of simulated annealing.
 
Methods inherited from class org.encog.neural.networks.training.BasicTraining
addStrategy, 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
 

Field Detail

CUT

public static final double CUT
The cutoff for random data.

See Also:
Constant Field Values
Constructor Detail

NeuralSimulatedAnnealing

public NeuralSimulatedAnnealing(BasicNetwork network,
                                NeuralDataSet training,
                                double startTemp,
                                double stopTemp,
                                int cycles)
Construct a simulated annleaing trainer for a feedforward neural network.

Parameters:
network - The neural network to be trained.
training - The training set.
startTemp - The starting temperature.
stopTemp - The ending temperature.
cycles - The number of cycles in a training iteration.
Method Detail

getNetwork

public BasicNetwork getNetwork()
Get the best network from the training.

Returns:
The best network.

iteration

public void iteration()
Perform one iteration of simulated annealing.


The Encog Project