org.encog.neural.neat.training.opp.links
Class SelectFixed

java.lang.Object
  extended by org.encog.neural.neat.training.opp.links.SelectFixed
All Implemented Interfaces:
SelectLinks

public class SelectFixed
extends Object
implements SelectLinks

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


Constructor Summary
SelectFixed(int theLinkCount)
          Construct a fixed count link selector.
 
Method Summary
 EvolutionaryAlgorithm getTrainer()
           
 void init(EvolutionaryAlgorithm theTrainer)
          Setup the selector.
 List<NEATLinkGene> selectLinks(Random rnd, NEATGenome genome)
          Select links from the specified genome.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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:
getTrainer in interface SelectLinks
Returns:
the trainer

init

public void init(EvolutionaryAlgorithm theTrainer)
Setup the selector.

Specified by:
init in interface SelectLinks
Parameters:
theTrainer - The trainer.

selectLinks

public List<NEATLinkGene> selectLinks(Random rnd,
                                      NEATGenome genome)
Select links from the specified genome.

Specified by:
selectLinks in interface SelectLinks
Parameters:
rnd - A random number generator.
genome - The genome to select from.
Returns:
A List of link genomes.

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.