Documentation of 'ec.gp.koza.KozaShortStatistics' Java class
KozaShortStatistics
ec.gp.koza

Class KozaShortStatistics

  • All Implemented Interfaces:
    Setup, Singleton, java.io.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:
    Serialized Form
    • Field Detail

      • doDepth

        public boolean doDepth
    • Constructor Detail

      • KozaShortStatistics

        public KozaShortStatistics()
    • Method Detail

      • setup

        public void setup(EvolutionState state,
                          Parameter base)
        Description copied from interface: Setup
        Sets 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:
        setup in interface Setup
        Overrides:
        setup in class SimpleShortStatistics

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.