C# Class social_learning.SocialExperiment

Inheritance: INeatExperiment
Show file Open project: tansey/social-learning Class Usage Examples

Public Methods

Method Description
CreateEvolutionAlgorithm ( ) : NeatEvolutionAlgorithm

Create and return a NeatEvolutionAlgorithm object ready for running the NEAT algorithm/search. Various sub-parts of the algorithm are also constructed and connected up. This overload requires no parameters and uses the default population size.

CreateEvolutionAlgorithm ( IGenomeFactory genomeFactory, List genomeList ) : NeatEvolutionAlgorithm

Create and return a NeatEvolutionAlgorithm object ready for running the NEAT algorithm/search. Various sub-parts of the algorithm are also constructed and connected up. This overload accepts a pre-built genome2 population and their associated/parent genome2 factory.

CreateEvolutionAlgorithm ( int populationSize ) : NeatEvolutionAlgorithm

Create and return a NeatEvolutionAlgorithm object ready for running the NEAT algorithm/search. Various sub-parts of the algorithm are also constructed and connected up. This overload accepts a population size parameter that specifies how many genomes to create in an initial randomly generated population.

CreateGenomeDecoder ( ) : IBlackBox>.IGenomeDecoder

Creates a new genome decoder that can be used to convert a genome into a phenome.

CreateGenomeFactory ( ) : IGenomeFactory

Create a genome factory for the experiment. Create a genome factory with our neat genome parameters object and the appropriate number of input and output neuron genes.

CreateNetwork ( string filename ) : void
Initialize ( string name, XmlElement xmlConfig ) : void

Initialize the experiment with some optional XML configutation data.

LoadPopulation ( XmlReader xr ) : List

Load a population of genomes from an XmlReader and returns the genomes in a new list. The genome factory for the genomes can be obtained from any one of the genomes.

SavePopulation ( XmlWriter xw, IList genomeList ) : void

Save a population of genomes to an XmlWriter.

SocialExperiment ( ) : System.Collections.Generic

Method Details

CreateEvolutionAlgorithm() public method

Create and return a NeatEvolutionAlgorithm object ready for running the NEAT algorithm/search. Various sub-parts of the algorithm are also constructed and connected up. This overload requires no parameters and uses the default population size.
public CreateEvolutionAlgorithm ( ) : NeatEvolutionAlgorithm
return NeatEvolutionAlgorithm

CreateEvolutionAlgorithm() public method

Create and return a NeatEvolutionAlgorithm object ready for running the NEAT algorithm/search. Various sub-parts of the algorithm are also constructed and connected up. This overload accepts a pre-built genome2 population and their associated/parent genome2 factory.
public CreateEvolutionAlgorithm ( IGenomeFactory genomeFactory, List genomeList ) : NeatEvolutionAlgorithm
genomeFactory IGenomeFactory
genomeList List
return NeatEvolutionAlgorithm

CreateEvolutionAlgorithm() public method

Create and return a NeatEvolutionAlgorithm object ready for running the NEAT algorithm/search. Various sub-parts of the algorithm are also constructed and connected up. This overload accepts a population size parameter that specifies how many genomes to create in an initial randomly generated population.
public CreateEvolutionAlgorithm ( int populationSize ) : NeatEvolutionAlgorithm
populationSize int
return NeatEvolutionAlgorithm

CreateGenomeDecoder() public method

Creates a new genome decoder that can be used to convert a genome into a phenome.
public CreateGenomeDecoder ( ) : IBlackBox>.IGenomeDecoder
return IBlackBox>.IGenomeDecoder

CreateGenomeFactory() public method

Create a genome factory for the experiment. Create a genome factory with our neat genome parameters object and the appropriate number of input and output neuron genes.
public CreateGenomeFactory ( ) : IGenomeFactory
return IGenomeFactory

CreateNetwork() public static method

public static CreateNetwork ( string filename ) : void
filename string
return void

Initialize() public method

Initialize the experiment with some optional XML configutation data.
public Initialize ( string name, XmlElement xmlConfig ) : void
name string
xmlConfig System.Xml.XmlElement
return void

LoadPopulation() public method

Load a population of genomes from an XmlReader and returns the genomes in a new list. The genome factory for the genomes can be obtained from any one of the genomes.
public LoadPopulation ( XmlReader xr ) : List
xr XmlReader
return List

SavePopulation() public method

Save a population of genomes to an XmlWriter.
public SavePopulation ( XmlWriter xw, IList genomeList ) : void
xw System.Xml.XmlWriter
genomeList IList
return void

SocialExperiment() public method

public SocialExperiment ( ) : System.Collections.Generic
return System.Collections.Generic