org.encog.ml.genetic
Class MLMethodGenome
java.lang.Object
org.encog.ml.ea.genome.BasicGenome
org.encog.ml.genetic.genome.DoubleArrayGenome
org.encog.ml.genetic.MLMethodGenome
- All Implemented Interfaces:
- Serializable, Genome, ArrayGenome, MLMethod
public class MLMethodGenome
- extends DoubleArrayGenome
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
Methods inherited from class org.encog.ml.ea.genome.BasicGenome |
getAdjustedScore, getBirthGeneration, getPopulation, getScore, getSpecies, setAdjustedScore, setBirthGeneration, setPopulation, setScore, setSpecies, toString |
MLMethodGenome
public MLMethodGenome(MLEncodable thePhenotype)
- Construct a neural genome.
- Parameters:
thePhenotype
- The phenotype to use.
decode
public void decode()
- Decode the phenotype.
getPhenotype
public MLEncodable getPhenotype()
- Returns:
- the phenotype
setPhenotype
public void setPhenotype(MLEncodable phenotype)
- Parameters:
phenotype
- the phenotype to set
Copyright © 2014. All Rights Reserved.