org.encog.neural.hyperneat
Class HyperNEATCODEC
- java.lang.Object
-
- org.encog.neural.hyperneat.HyperNEATCODEC
-
- All Implemented Interfaces:
- GeneticCODEC
public class HyperNEATCODEC extends java.lang.Object implements GeneticCODEC
-
-
Constructor Summary
Constructors Constructor and Description HyperNEATCODEC()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description MLMethoddecode(Genome genome)Decode the specified genome into a phenome.MLMethoddecode(NEATPopulation pop, Substrate substrate, Genome genome)Genomeencode(MLMethod phenotype)Attempt to build a genome from a phenome.doublegetMaxWeight()doublegetMinWeight()voidsetMaxWeight(double maxWeight)voidsetMinWeight(double minWeight)
-
-
-
Method Detail
-
decode
public MLMethod decode(Genome genome)
Decode the specified genome into a phenome. A phenome is an actual instance of a genome that you can query.- Specified by:
decodein interfaceGeneticCODEC- Parameters:
genome- The genome to decode.- Returns:
- The phenome.
-
decode
public MLMethod decode(NEATPopulation pop, Substrate substrate, Genome genome)
-
encode
public Genome encode(MLMethod phenotype)
Description copied from interface:GeneticCODECAttempt to build a genome from a phenome. Note: not all CODEC's support this. If it is unsupported, an exception will be thrown.- Specified by:
encodein interfaceGeneticCODEC- Parameters:
phenotype- The phenotype.- Returns:
- The genome.
-
getMaxWeight
public double getMaxWeight()
- Returns:
- the maxWeight
-
getMinWeight
public double getMinWeight()
- Returns:
- the minWeight
-
setMaxWeight
public void setMaxWeight(double maxWeight)
- Parameters:
maxWeight- the maxWeight to set
-
setMinWeight
public void setMinWeight(double minWeight)
- Parameters:
minWeight- the minWeight to set
-
-
DMelt 3.0 © DataMelt by jWork.ORG