org.encog.neural.neat.training.opp.links
Class SelectFixed
- java.lang.Object
-
- org.encog.neural.neat.training.opp.links.SelectFixed
-
- All Implemented Interfaces:
- java.io.Serializable, SelectLinks
public class SelectFixed extends java.lang.Object implements SelectLinks, java.io.Serializable
Select a fixed number of link genes. If the genome does not have enough links to select the specified count, then all genes will be returned. ----------------------------------------------------------------------------- http://www.cs.ucf.edu/~kstanley/ Encog's NEAT implementation was drawn from the following three Journal Articles. For more complete BibTeX sources, see NEATNetwork.java. Evolving Neural Networks Through Augmenting Topologies Generating Large-Scale Neural Networks Through Discovering Geometric Regularities Automatic feature selection in neuroevolution- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SelectFixed(int theLinkCount)Construct a fixed count link selector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description EvolutionaryAlgorithmgetTrainer()voidinit(EvolutionaryAlgorithm theTrainer)Setup the selector.java.util.List<NEATLinkGene>selectLinks(java.util.Random rnd, NEATGenome genome)Select links from the specified genome.java.lang.StringtoString()
-
-
-
Constructor Detail
-
SelectFixed
public SelectFixed(int theLinkCount)
Construct a fixed count link selector.- Parameters:
theLinkCount- The number of links to select.
-
-
Method Detail
-
getTrainer
public EvolutionaryAlgorithm getTrainer()
- Specified by:
getTrainerin interfaceSelectLinks- Returns:
- the trainer
-
init
public void init(EvolutionaryAlgorithm theTrainer)
Setup the selector.- Specified by:
initin interfaceSelectLinks- Parameters:
theTrainer- The trainer.
-
selectLinks
public java.util.List<NEATLinkGene> selectLinks(java.util.Random rnd, NEATGenome genome)
Select links from the specified genome.- Specified by:
selectLinksin interfaceSelectLinks- Parameters:
rnd- A random number generator.genome- The genome to select from.- Returns:
- A List of link genomes.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG