ec.gp.koza
Class KozaShortStatistics
- java.lang.Object
-
- ec.Statistics
-
- ec.simple.SimpleShortStatistics
-
- ec.gp.koza.KozaShortStatistics
-
public class KozaShortStatistics extends SimpleShortStatistics
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description booleandoDepthstatic java.lang.StringP_DO_DEPTH-
Fields inherited from class ec.simple.SimpleShortStatistics
bestOfGeneration, bestSoFar, doSize, doSubpops, doTime, lastTime, modulus, P_COMPRESS, P_DO_SIZE, P_DO_SUBPOPS, P_DO_TIME, P_FULL, P_STATISTICS_FILE, P_STATISTICS_MODULUS, statisticslog, totalFitnessThisGen, totalIndsSoFar, totalIndsThisGen, totalSizeSoFar, totalSizeThisGen
-
Fields 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 Constructor and Description KozaShortStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidpostInitializationStatistics(EvolutionState state)GENERATIONAL: Called immediately after population initialization occurs.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
getBestSoFar, postBreedingStatistics, postEvaluationStatistics, preBreedingStatistics, preEvaluationStatistics, preInitializationStatistics
-
Methods inherited from class ec.Statistics
enteringInitialPopulationStatistics, enteringSteadyStateStatistics, finalStatistics, generationBoundaryStatistics, individualsBredStatistics, individualsEvaluatedStatistics, postCheckpointStatistics, postPostBreedingExchangeStatistics, postPreBreedingExchangeStatistics, preCheckpointStatistics, prePostBreedingExchangeStatistics, prePreBreedingExchangeStatistics
-
-
-
-
Field Detail
-
P_DO_DEPTH
public static final java.lang.String P_DO_DEPTH
- See Also:
- Constant Field Values
-
doDepth
public boolean doDepth
-
-
Method Detail
-
setup
public void setup(EvolutionState state, Parameter base)
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
public void postInitializationStatistics(EvolutionState state)
Description copied from class:StatisticsGENERATIONAL: Called immediately after population initialization occurs.- Overrides:
postInitializationStatisticsin classSimpleShortStatistics
-
-
DMelt 3.0 © DataMelt by jWork.ORG