The Encog Project

org.encog.neural.networks.training.genetic
Class NeuralGeneticAlgorithm

java.lang.Object
  extended by org.encog.solve.genetic.GeneticAlgorithm<java.lang.Double>
      extended by org.encog.neural.networks.training.genetic.NeuralGeneticAlgorithm
Direct Known Subclasses:
TrainingSetNeuralGeneticAlgorithm

public class NeuralGeneticAlgorithm
extends GeneticAlgorithm<java.lang.Double>

NeuralGeneticAlgorithm: Implements a genetic algorithm that allows a feedforward neural network to be trained using a genetic algorithm. This algorithm is for a feed forward neural network. This class is abstract. If you wish to train the neural network using training sets, you should use the TrainingSetNeuralGeneticAlgorithm class. If you wish to use a cost function to train the neural network, then implement a subclass of this one that properly calculates the cost.


Field Summary
 
Fields inherited from class org.encog.solve.genetic.GeneticAlgorithm
TIMEOUT
 
Constructor Summary
NeuralGeneticAlgorithm()
           
 
Method Summary
 BasicNetwork getNetwork()
          Get the current best neural network.
 
Methods inherited from class org.encog.solve.genetic.GeneticAlgorithm
getChromosome, getChromosomes, getCutLength, getMatingPopulation, getMutationPercent, getPercentToMate, getPool, getPopulationSize, isPreventRepeat, iteration, setChromosome, setChromosomes, setCutLength, setMatingPopulation, setMutationPercent, setPercentToMate, setPool, setPopulationSize, setPreventRepeat, sortChromosomes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeuralGeneticAlgorithm

public NeuralGeneticAlgorithm()
Method Detail

getNetwork

public BasicNetwork getNetwork()
Get the current best neural network.

Returns:
The current best neural network.

The Encog Project