org.encog.neural.networks.training.anneal
Class NeuralSimulatedAnnealingHelper
- java.lang.Object
-
- org.encog.ml.anneal.SimulatedAnnealing<java.lang.Double>
-
- org.encog.neural.networks.training.anneal.NeuralSimulatedAnnealingHelper
-
public class NeuralSimulatedAnnealingHelper extends SimulatedAnnealing<java.lang.Double>
Simple class used by the neural simulated annealing. This class is a subclass of the basic SimulatedAnnealing class. The It is used by the actual NeuralSimulatedAnnealing class, which subclasses BasicTraining. This class is mostly necessary due to the fact that NeuralSimulatedAnnealing can't subclass BOTH SimulatedAnnealing and Train, because multiple inheritance is not supported.
-
-
Constructor Summary
Constructors Constructor and Description NeuralSimulatedAnnealingHelper(NeuralSimulatedAnnealing owner)Constructs this object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecalculateScore()Used to pass the determineError call on to the parent object.java.lang.Double[]getArray()Used to pass the getArray call on to the parent object.java.lang.Double[]getArrayCopy()Used to pass the getArrayCopy call on to the parent object.voidputArray(java.lang.Double[] array)Used to pass the putArray call on to the parent object.voidrandomize()Call the owner's randomize method.-
Methods inherited from class org.encog.ml.anneal.SimulatedAnnealing
getCycles, getScore, getStartTemperature, getStopTemperature, getTemperature, isShouldMinimize, iteration, setCycles, setScore, setShouldMinimize, setStartTemperature, setStopTemperature, setTemperature
-
-
-
-
Constructor Detail
-
NeuralSimulatedAnnealingHelper
public NeuralSimulatedAnnealingHelper(NeuralSimulatedAnnealing owner)
Constructs this object.- Parameters:
owner- The owner of this class, that recieves all messages.
-
-
Method Detail
-
calculateScore
public double calculateScore()
Used to pass the determineError call on to the parent object.- Specified by:
calculateScorein classSimulatedAnnealing<java.lang.Double>- Returns:
- The error returned by the owner.
-
getArray
public java.lang.Double[] getArray()
Used to pass the getArray call on to the parent object.- Specified by:
getArrayin classSimulatedAnnealing<java.lang.Double>- Returns:
- The array returned by the owner.
-
getArrayCopy
public java.lang.Double[] getArrayCopy()
Used to pass the getArrayCopy call on to the parent object.- Specified by:
getArrayCopyin classSimulatedAnnealing<java.lang.Double>- Returns:
- The array copy created by the owner.
-
putArray
public void putArray(java.lang.Double[] array)
Used to pass the putArray call on to the parent object.- Specified by:
putArrayin classSimulatedAnnealing<java.lang.Double>- Parameters:
array- The array.
-
randomize
public void randomize()
Call the owner's randomize method.- Specified by:
randomizein classSimulatedAnnealing<java.lang.Double>
-
-
DMelt 3.0 © DataMelt by jWork.ORG