org.encog.neural.networks.training.genetic
Class NeuralGenome
java.lang.Object
org.encog.ml.genetic.genome.BasicGenome
org.encog.neural.networks.training.genetic.NeuralGenome
- All Implemented Interfaces:
- Serializable, Comparable<Genome>, Genome
public class NeuralGenome
- extends BasicGenome
Implements a genome that allows a feedforward neural network to be trained
using a genetic algorithm. The chromosome for a feed forward neural network
is the weight and bias matrix.
- See Also:
- Serialized Form
|
Method Summary |
void |
decode()
Decode the genomes into a neural network. |
void |
encode()
Encode the neural network into genes. |
| Methods inherited from class org.encog.ml.genetic.genome.BasicGenome |
calculateGeneCount, compareTo, equals, getAdjustedScore, getAmountToSpawn, getChromosomes, getGeneticAlgorithm, getGenomeID, getOrganism, getPopulation, getScore, mate, setAdjustedScore, setAmountToSpawn, setGeneticAlgorithm, setGenomeID, setOrganism, setPopulation, setScore, toString |
NeuralGenome
public NeuralGenome(BasicNetwork network)
- Construct a neural genome.
- Parameters:
network - The network to use.
decode
public final void decode()
- Decode the genomes into a neural network.
encode
public final void encode()
- Encode the neural network into genes.
Copyright © 2011. All Rights Reserved.