org.encog.neural.networks.training.anneal
Class NeuralSimulatedAnnealing
java.lang.Object
org.encog.neural.networks.training.BasicTraining
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CUT
public static final double CUT
- The cutoff for random data.
- See Also:
- Constant Field Values
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.
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.