|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.solve.anneal.SimulatedAnnealing<java.lang.Double>
org.encog.neural.networks.training.anneal.NeuralSimulatedAnnealing
public class NeuralSimulatedAnnealing
NeuralSimulatedAnnealing: 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 | |
|---|---|
double |
determineError()
Determine the error of the current weights and thresholds. |
java.lang.Double[] |
getArray()
Get the network as an array of doubles. |
java.lang.Double[] |
getArrayCopy()
Get a copy of the array. |
BasicNetwork |
getNetwork()
Get the best network from the training. |
void |
putArray(java.lang.Double[] array)
Convert an array of doubles to the current best network. |
void |
randomize()
Randomize the weights and thresholds. |
| Methods inherited from class org.encog.solve.anneal.SimulatedAnnealing |
|---|
getCycles, getError, getStartTemperature, getStopTemperature, getTemperature, iteration, setCycles, setError, setStartTemperature, setStopTemperature, setTemperature |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double CUT
| Constructor Detail |
|---|
public NeuralSimulatedAnnealing(BasicNetwork network,
NeuralDataSet training,
double startTemp,
double stopTemp,
int cycles)
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 |
|---|
public double determineError()
determineError in class SimulatedAnnealing<java.lang.Double>public java.lang.Double[] getArray()
getArray in class SimulatedAnnealing<java.lang.Double>public java.lang.Double[] getArrayCopy()
SimulatedAnnealing
getArrayCopy in class SimulatedAnnealing<java.lang.Double>public BasicNetwork getNetwork()
public void putArray(java.lang.Double[] array)
putArray in class SimulatedAnnealing<java.lang.Double>array - An array.public void randomize()
randomize in class SimulatedAnnealing<java.lang.Double>
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||