C# Класс TicTacToeCoevolutionMultiPop.TicTacToeHostParasiteExperiment

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateEvolutionAlgorithms ( ) : 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.

CreateEvolutionAlgorithms ( IGenomeFactory genomeFactory1, List genomeList1, IGenomeFactory genomeFactory2, List genomeList2 ) : 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.

CreateEvolutionAlgorithms ( 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.

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 genome2 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.

Описание методов

CreateEvolutionAlgorithms() публичный Метод

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 CreateEvolutionAlgorithms ( ) : NeatEvolutionAlgorithm[]
Результат NeatEvolutionAlgorithm[]

CreateEvolutionAlgorithms() публичный Метод

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 CreateEvolutionAlgorithms ( IGenomeFactory genomeFactory1, List genomeList1, IGenomeFactory genomeFactory2, List genomeList2 ) : NeatEvolutionAlgorithm[]
genomeFactory1 IGenomeFactory
genomeList1 List
genomeFactory2 IGenomeFactory
genomeList2 List
Результат NeatEvolutionAlgorithm[]

CreateEvolutionAlgorithms() публичный Метод

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 CreateEvolutionAlgorithms ( int populationSize ) : NeatEvolutionAlgorithm[]
populationSize int
Результат NeatEvolutionAlgorithm[]

CreateGenomeDecoder() публичный Метод

Creates a new genome decoder that can be used to convert a genome into a phenome.
public CreateGenomeDecoder ( ) : IBlackBox>.IGenomeDecoder
Результат IBlackBox>.IGenomeDecoder

CreateGenomeFactory() публичный Метод

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
Результат IGenomeFactory

Initialize() публичный Метод

Initialize the experiment with some optional XML configutation data.
public Initialize ( string name, XmlElement xmlConfig ) : void
name string
xmlConfig System.Xml.XmlElement
Результат void

LoadPopulation() публичный Метод

Load a population of genomes from an XmlReader and returns the genomes in a new list. The genome2 factory for the genomes can be obtained from any one of the genomes.
public LoadPopulation ( XmlReader xr ) : List
xr System.Xml.XmlReader
Результат List

SavePopulation() публичный Метод

Save a population of genomes to an XmlWriter.
public SavePopulation ( XmlWriter xw, IList genomeList ) : void
xw System.Xml.XmlWriter
genomeList IList
Результат void