Initializators – initialization methods module

In this module we have the genetic operators of initialization for each chromosome representation, the most part of initialization is done by choosing random data.

Note

In Pyevolve, the Initializator defines the data type that will be used on the chromosome, for example, the G1DListInitializatorInteger() will initialize the G1DList with Integers.

Initializators.G1DBinaryStringInitializator(genome, **args)
1D Binary String initializator
Initializators.G1DListInitializatorAllele(genome, **args)

Allele initialization function of G1DList

To use this initializator, you must specify the allele genome parameter with the GAllele.GAlleles instance.

Initializators.G1DListInitializatorInteger(genome, **args)

Integer initialization function of G1DList

This initializator accepts the rangemin and rangemax genome parameters.

Initializators.G1DListInitializatorReal(genome, **args)

Real initialization function of G1DList

This initializator accepts the rangemin and rangemax genome parameters.

Initializators.G2DBinaryStringInitializator(genome, **args)

Integer initialization function of 2D Binary String

New in version 0.6: The G2DBinaryStringInitializator function

Initializators.G2DListInitializatorAllele(genome, **args)

Allele initialization function of G2DList

To use this initializator, you must specify the allele genome parameter with the GAllele.GAlleles instance.

Warning

the GAllele.GAlleles instance must have the homogeneous flag enabled

Initializators.G2DListInitializatorInteger(genome, **args)

Integer initialization function of G2DList

This initializator accepts the rangemin and rangemax genome parameters.

Initializators.G2DListInitializatorReal(genome, **args)

Integer initialization function of G2DList

This initializator accepts the rangemin and rangemax genome parameters.

Initializators.GTreeGPInitializator(genome, **args)

This initializator accepts the follow parameters:

max_depth
The max depth of the tree
method
The method, accepts “grow”, “full” or “ramped”

New in version 0.6: The GTreeGPInitializator function.

Initializators.GTreeInitializatorAllele(genome, **args)

Allele initialization function of GTree

To use this initializator, you must specify the allele genome parameter with the GAllele.GAlleles instance.

Warning

the GAllele.GAlleles instance must have the homogeneous flag enabled

New in version 0.6: The GTreeInitializatorAllele function.

Initializators.GTreeInitializatorInteger(genome, **args)

Integer initialization function of GTree

This initializator accepts the rangemin and rangemax genome parameters. It accepts the following parameters too:

max_depth
The max depth of the tree
max_siblings
The number of maximum siblings of an node
method
The method, accepts “grow”, “full” or “ramped”.

New in version 0.6: The GTreeInitializatorInteger function.


Previous topic

Crossovers – crossover methods module

Next topic

Selectors – selection methods module

This Page