Consts – constants module
Pyevolve have defaults in all genetic operators, settings and etc, this is an issue to helps the user in the API use and minimize the source code needed to make simple things. In the module Consts, you will find those defaults settings. You are encouraged to see the constants, but not to change directly on the module, there are methods for this.
General constants
-
Consts.CDefPythonRequire
- The mininum version required to run Pyevolve.
-
Consts.CDefLogFile
- The default log filename.
-
Consts.CDefLogLevel
- Default log level.
-
Consts.sortType
Sort type, raw or scaled.
- Example:
>>> sort_type = Consts.sortType["raw"]
>>> sort_type = Consts.sortType["scaled"]
-
Consts.minimaxType
The Min/Max type, maximize or minimize the evaluation function.
- Example:
>>> minmax = Consts.minimaxType["minimize"]
>>> minmax = Consts.minimaxType["maximize]
-
Consts.CDefESCKey
- The ESC key ASCII code. Used to start Interactive Mode.
-
Consts.CDefRangeMin
- Minimum range. This constant is used as integer and real max/min.
-
Consts.CDefRangeMax
- Maximum range. This constant is used as integer and real max/min.
-
Consts.CDefBroadcastAddress
- The broadcast address for UDP, 255.255.255.255
-
Consts.CDefImportList
- The import list and messages
-
Consts.nodeType
- The genetic programming node types, can be “TERMINAL”:0 or “NONTERMINAL”:1
-
Consts.CDefGPGenomes
- The classes which are used in Genetic Programming, used to detected the
correct mode when starting the evolution
Scaling scheme constants (Scaling)
-
Consts.CDefScaleLinearMultiplier
- The multiplier of the Linear (Scaling.LinearScaling()) scaling scheme.
-
Consts.CDefScaleSigmaTruncMultiplier
- The default Sigma Truncation (Scaling.SigmaTruncScaling()) scaling scheme.
-
Consts.CDefScalePowerLawFactor
- The default Power Law (Scaling.PowerLawScaling()) scaling scheme factor.
-
Consts.CDefScaleBoltzMinTemp
- The default mininum temperature of the (Scaling.BoltzmannScaling()) scaling scheme factor.
-
Consts.CDefScaleBoltzFactor
- The default Boltzmann Factor of (Scaling.BoltzmannScaling()) scaling scheme factor.
This is the factor that the temperature will be subtracted.
-
Consts.CDefScaleBoltzStart
- The default Boltzmann start temperature (Scaling.BoltzmannScaling()).
If you don’t set the start temperature parameter, this will be the default initial
temperature for the Boltzmann scaling scheme.
-
Consts.CDefPopSortType
- Default sort type parameter.
-
Consts.CDefPopMinimax
- Default min/max parameter.
-
Consts.CDefPopScale
- Default scaling scheme.
Tree chromosome constants (GTree.GTree)
-
Consts.CDefGTreeInit
- Default initializator of the tree chromosome.
-
Consts.CDefGGTreeMutator
- Default mutator of the tree chromosome.
-
Consts.CDefGTreeCrossover
- Default crossover of the tree chromosome.
2D List chromosome constants (G2DList.G2DList)
-
Consts.CDefG2DListMutRealMU
- Default mu value of the 2D List Gaussian Real Mutator (Mutators.G2DListMutatorRealGaussian()), the mu represents the mean of the distribution.
-
Consts.CDefG2DListMutRealSIGMA
- Default sigma value of the 2D List Gaussian Real Mutator (Mutators.G2DListMutatorRealGaussian()), the sigma represents the mean of the distribution.
-
Consts.CDefG2DListMutIntMU
- Default mu value of the 2D List Gaussian Integer Mutator (Mutators.G2DListMutatorIntegerGaussian()), the mu represents the mean of the distribution.
-
Consts.CDefG2DListMutIntSIGMA
- Default sigma value of the 2D List Gaussian Integer Mutator (Mutators.G2DListMutatorIntegerGaussian()), the sigma represents the mean of the distribution.
-
Consts.CDefG2DListMutator
- Default mutator for the 2D List chromosome.
-
Consts.CDefG2DListCrossover
- Default crossover method for the 2D List chromosome.
-
Consts.CDefG2DListInit
- Default initializator for the 2D List chromosome.
-
Consts.CDefG2DListCrossUniformProb
- Default uniform probability for the 2D List Uniform Crossover method (Crossovers.G2DListCrossoverUniform()).
-
Consts.CDefGAGenerations
- Default number of generations.
-
Consts.CDefGAMutationRate
- Default mutation rate.
-
Consts.CDefGACrossoverRate
- Default crossover rate.
-
Consts.CDefGAPopulationSize
- Default population size.
-
Consts.CDefGASelector
- Default selector method.
DB Adapters constants (DBAdapters)
Constants for the DB Adapters
-
Consts.CDefSQLiteDBName
- Default database filename.
-
Consts.CDefSQLiteDBTable
- Default statistical table name.
-
Consts.CDefSQLiteDBTablePop
- Default population statistical table name.
-
Consts.CDefSQLiteStatsGenFreq
- Default generational frequency for dump statistics.
-
Consts.CDefSQLiteStatsCommitFreq
- Default commit frequency.
-
Consts.CDefMySQLDBName
- Default database name.
-
Consts.CDefMySQLDBTable
- Default statistical table name.
-
Consts.CDefMySQLDBTablePop
- Default population statistical table name.
-
Consts.CDefMySQLStatsGenFreq
- Default generational frequency for dump statistics.
-
Consts.CDefMySQLStatsCommitFreq
- Default commit frequency.
-
Consts.CDefMySQLDBHost
- Default MySQL connection host.
-
Consts.CDefMySQLDBPort
- Default MySQL connection TCP port.
-
Consts.CDefURLPostStatsGenFreq
- Default generational frequency for dump statistics.
-
Consts.CDefCSVFileName
- The default CSV filename to dump statistics.
-
Consts.CDefCSVFileStatsGenFreq
- Default generational frequency for dump statistics.
-
Consts.CDefXMLRPCStatsGenFreq
- Default generational frequency for dump statistics.
Migration Constants (Migration)
-
Consts.CDefGenMigrationRate
- The default generations supposed to migrate and receive individuals
-
Consts.CDefMigrationNIndividuals
- The default number of individuals that will migrate at the CDefGenMigrationRate
interval
-
Consts.CDefNetworkIndividual
- A migration code for network individual data
-
Consts.CDefNetworkInfo
- A migration code for network info data
-
Consts.CDefGenMigrationReplacement
- The default number of individuals to be replaced at the migration stage