Package ec.gp.koza

Class KozaShortStatistics

All Implemented Interfaces:
Setup, Singleton, Serializable

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
KozaStatistics assumes that every one of the Individuals in your population (and all subpopualtions) are GPIndividuals, and further that they all have the same number of trees. Besides the parameter below, KozaShortStatistics obeys all the SimpleShortStatistics parameters.

Parameters

base.do-depth
bool = true or false (default)
(print depth information?)
See Also: