alogos.systems.cfggp.init_population
¶
Initialization functions to generate a population for CFG-GP.
Functions¶
|
Create a population from given genotypes. |
|
Create a population from given derivation trees. |
|
Create a population from given phenotypes. |
|
Create a population from random genotypes. |
|
Create a population with GP RHH. |
|
Create a population with PI RHH. |
|
Create a population with PTC2. |
Detailed object descriptions¶
- alogos.systems.cfggp.init_population.given_genotypes(grammar, parameters=None)[source]¶
Create a population from given genotypes.
- Parameters:
grammar (
Grammar
)parameters (
dict
orParameterCollection
) – Following keyword-value pairs are considered by this function:
- Returns:
population (
Population
)- Raises:
InitializationError – If creating the population fails.
- alogos.systems.cfggp.init_population.given_derivation_trees(grammar, parameters=None)[source]¶
Create a population from given derivation trees.
- Parameters:
grammar (
Grammar
)parameters (
dict
orParameterCollection
) – Following keyword-value pairs are considered by this function:init_pop_given_derivation_trees
(list
ofDerivationTree
) : A list of derivation trees, which are used to initialize the individuals of the population. Note that the length of this list determines the size of the generated population.
- Returns:
population (
Population
)- Raises:
InitializationError – If creating the population fails.
- alogos.systems.cfggp.init_population.given_phenotypes(grammar, parameters=None)[source]¶
Create a population from given phenotypes.
- Parameters:
grammar (
Grammar
)parameters (
dict
orParameterCollection
) – Following keyword-value pairs are considered by this function:
- Returns:
population (
Population
)- Raises:
InitializationError – If creating the population fails.
- alogos.systems.cfggp.init_population.random_genotypes(grammar, parameters=None)[source]¶
Create a population from random genotypes.
- Parameters:
- Returns:
population (
Population
)- Raises:
InitializationError – If creating the population fails.
- alogos.systems.cfggp.init_population.gp_rhh(grammar, parameters=None)[source]¶
Create a population with GP RHH.
- Parameters:
grammar (
Grammar
)parameters (
dict
orParameterCollection
) – Following keyword-value pairs are considered by this function:
- Returns:
population (
Population
)- Raises:
InitializationError – If creating the population fails.
Notes
See
gp_rhh
.
- alogos.systems.cfggp.init_population.pi_rhh(grammar, parameters=None)[source]¶
Create a population with PI RHH.
- Parameters:
grammar (
Grammar
)parameters (
dict
orParameterCollection
) – Following keyword-value pairs are considered by this function:
- Returns:
population (
Population
)- Raises:
InitializationError – If creating the population fails.
Notes
See
pi_rhh
.
- alogos.systems.cfggp.init_population.ptc2(grammar, parameters=None)[source]¶
Create a population with PTC2.
- Parameters:
- Returns:
population (
Population
)- Raises:
InitializationError – If creating the population fails.
Notes
See
ptc2
.