org.encog.neural.hyperneat
Class FactorHyperNEATGenome
- java.lang.Object
-
- org.encog.neural.hyperneat.FactorHyperNEATGenome
-
- All Implemented Interfaces:
- GenomeFactory, NEATGenomeFactory
public class FactorHyperNEATGenome extends java.lang.Object implements NEATGenomeFactory
Create a Genome for use with HyperNEAT.
-
-
Constructor Summary
Constructors Constructor and Description FactorHyperNEATGenome()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description NEATGenomefactor()Genomefactor(Genome other)Create a clone of the other genome.NEATGenomefactor(java.util.List<NEATNeuronGene> neurons, java.util.List<NEATLinkGene> links, int inputCount, int outputCount)Create a NEAT genome from a list of links and neurons.NEATGenomefactor(java.util.Random rnd, NEATPopulation pop, int inputCount, int outputCount, double connectionDensity)Create a new random NEAT genome.
-
-
-
Method Detail
-
factor
public NEATGenome factor()
- Specified by:
factorin interfaceGenomeFactory- Returns:
- The newly created genome.
-
factor
public Genome factor(Genome other)
Create a clone of the other genome.- Specified by:
factorin interfaceGenomeFactory- Parameters:
other- The other genome.- Returns:
- The newly created clone.
-
factor
public NEATGenome factor(java.util.List<NEATNeuronGene> neurons, java.util.List<NEATLinkGene> links, int inputCount, int outputCount)
Create a NEAT genome from a list of links and neurons.- Specified by:
factorin interfaceNEATGenomeFactory- Parameters:
neurons- A list of neuron genes.links- A list of link genes.inputCount- The input count.outputCount- The output count.- Returns:
- The newly factored NEATGenome.
-
factor
public NEATGenome factor(java.util.Random rnd, NEATPopulation pop, int inputCount, int outputCount, double connectionDensity)
Create a new random NEAT genome.- Specified by:
factorin interfaceNEATGenomeFactory- Parameters:
rnd- A random number generator.pop- The NEAT population.inputCount- The input count.outputCount- The output count.connectionDensity- The connection density. Specify 1.0 for fully connected.- Returns:
- The newly created NEAT genome.
-
-
DMelt 3.0 © DataMelt by jWork.ORG