Package ec.gp.koza
Class KozaShortStatistics
java.lang.Object
ec.Statistics
ec.simple.SimpleShortStatistics
ec.gp.koza.KozaShortStatistics
- All Implemented Interfaces:
Setup,Singleton,Serializable
A Koza-style statistics generator, intended to be easily parseable with
awk or other Unix tools. Prints fitness information,
one generation (or pseudo-generation) per line.
If gather-full is true, then timing information, number of nodes
and depths of trees, etc. are also given. No final statistics information
is given.
Each line represents a single generation. The first items on a line are always:
- The generation number
- (if do-time) how long initialization took in milliseconds, or how long the previous generation took to breed to form this generation
- (if do-time) How long evaluation took in milliseconds this generation
Then, (if do-subpops) the following items appear, once per each subpopulation:
- (if do-depth) [a b c...], representing the average depth of tree a, b, etc. of individuals this generation
- (if do-size) [a b c...], representing the average number of nodes used in tree a, b, etc. of individuals this generation
- (if do-size) The average size of an individual this generation
- (if do-size) The average size of an individual so far in the run
- (if do-size) The size of the best individual this generation
- (if do-size) The size of the best individual so far in the run
- The mean standardized fitness of the subpopulation this generation
- The best standardized fitness of the subpopulation this generation
- The best standardized fitness of the subpopulation so far in the run
Then the following items appear, for the whole population:
- (if do-depth) [a b c...], representing the average depth of tree a, b, etc. of individuals this generation
- (if do-size) [a b c...], representing the average number of nodes used in tree a, b, etc. of individuals this generation
- (if do-size) The average size of an individual this generation
- (if do-size) The average size of an individual so far in the run
- (if do-size) The size of the best individual this generation
- (if do-size) The size of the best individual so far in the run
- The mean standardized fitness of the subpopulation this generation
- The best standardized fitness of the subpopulation this generation
- The best standardized fitness of the subpopulation so far in the run
Parameters
| base.do-depth bool = true or false (default) |
(print depth information?) |
- See Also:
-
Field Summary
FieldsFields inherited from class ec.simple.SimpleShortStatistics
bestOfGeneration, bestSoFar, delimiter, doHeader, doSize, doSubpops, doTime, lastTime, modulus, P_COMPRESS, P_DELIMITER, P_DO_HEADER, P_DO_SIZE, P_DO_SUBPOPS, P_DO_TIME, P_FULL, P_STATISTICS_FILE, P_STATISTICS_MODULUS, statisticslog, totalFitnessThisGen, totalIndsSoFar, totalIndsThisGen, totalSizeSoFar, totalSizeThisGenFields inherited from class ec.Statistics
children, P_CHILD, P_MUZZLE, P_NUMCHILDREN, P_SILENT, P_SILENT_FILE, P_SILENT_PRINT, silentFile, silentPrint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgatherExtraSubpopStatistics(EvolutionState state, int subpop, int individual) voidGENERATIONAL: Called immediately after population initialization occurs.protected voidprepareStatistics(EvolutionState state) protected voidprotected voidprintExtraSubpopStatisticsBefore(EvolutionState state, int subpop) voidsetup(EvolutionState state, Parameter base) Sets up the object by reading it from the parameters stored in state, built off of the parameter base base.Methods inherited from class ec.simple.SimpleShortStatistics
gatherExtraPopStatistics, getBestSoFar, postBreedingStatistics, postEvaluationStatistics, preBreedingStatistics, preEvaluationStatistics, preInitializationStatistics, printExtraPopStatisticsAfter, printExtraSubpopStatisticsAfterMethods inherited from class ec.Statistics
enteringInitialPopulationStatistics, enteringSteadyStateStatistics, finalStatistics, generationBoundaryStatistics, individualsBredStatistics, individualsEvaluatedStatistics, postCheckpointStatistics, postPostBreedingExchangeStatistics, postPreBreedingExchangeStatistics, preCheckpointStatistics, prePostBreedingExchangeStatistics, prePreBreedingExchangeStatistics
-
Field Details
-
P_DO_DEPTH
- See Also:
-
doDepth
public boolean doDepth
-
-
Constructor Details
-
KozaShortStatistics
public KozaShortStatistics()
-
-
Method Details
-
setup
Description copied from interface:SetupSets up the object by reading it from the parameters stored in state, built off of the parameter base base. If an ancestor implements this method, be sure to call super.setup(state,base); before you do anything else.- Specified by:
setupin interfaceSetup- Overrides:
setupin classSimpleShortStatistics
-
postInitializationStatistics
Description copied from class:StatisticsGENERATIONAL: Called immediately after population initialization occurs.- Overrides:
postInitializationStatisticsin classSimpleShortStatistics
-
prepareStatistics
- Overrides:
prepareStatisticsin classSimpleShortStatistics
-
gatherExtraSubpopStatistics
- Overrides:
gatherExtraSubpopStatisticsin classSimpleShortStatistics
-
printExtraSubpopStatisticsBefore
- Overrides:
printExtraSubpopStatisticsBeforein classSimpleShortStatistics
-
printExtraPopStatisticsBefore
- Overrides:
printExtraPopStatisticsBeforein classSimpleShortStatistics
-