The Encog Project

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

java.lang.Object
  extended by org.encog.solve.genetic.GeneticAlgorithm<java.lang.Double>
      extended by org.encog.neural.networks.training.genetic.NeuralGeneticAlgorithm.NeuralGeneticAlgorithmHelper
Enclosing class:
NeuralGeneticAlgorithm

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

Very simple class that implements a genetic algorithm.

Author:
jheaton

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

Constructor Detail

NeuralGeneticAlgorithm.NeuralGeneticAlgorithmHelper

public NeuralGeneticAlgorithm.NeuralGeneticAlgorithmHelper()
Method Detail

getError

public double getError()
Returns:
The error from the last iteration.

getNetwork

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

Returns:
The current best neural network.

The Encog Project