Documentation of 'ec.simple.SimpleShortStatistics' Java class
SimpleShortStatistics
ec.simple

Class SimpleShortStatistics

  • All Implemented Interfaces:
    Setup, Singleton, java.io.Serializable
    Direct Known Subclasses:
    KozaShortStatistics


    public class SimpleShortStatistics
    extends Statistics
    A Simple-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 do-time is true, then timing information is also given. If do-size is true, then size information is also given. No final statistics information is provided. You can also set SimpleShortStatistics to only output every *modulus* generations to keep the tally shorter. And you can gzip the statistics file.

    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-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 fitness of the subpopulation this generation
    • The best fitness of the subpopulation this generation
    • The best fitness of the subpopulation so far in the run

    Then the following items appear, for the whole population:

    • (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 fitness this generation
    • The best fitness this generation
    • The best fitness so far in the run
    Compressed files will be overridden on restart from checkpoint; uncompressed files will be appended on restart.

    Parameters

    base.file
    String (a filename), or nonexistant (signifies stdout)
    (the log for statistics)
    base.gzip
    boolean
    (whether or not to compress the file (.gz suffix added)
    base.modulus
    integer >= 1 (default)
    (How often (in generations) should we print a statistics line?)
    base.do-time
    bool = true or false (default)
    (print timing information?)
    base.do-size
    bool = true or false (default)
    (print sizing information?)
    base.do-subpops
    bool = true or false (default)
    (print information on a per-subpop basis as well as per-population?)
    See Also:
    Serialized Form
    • Field Detail

      • P_STATISTICS_MODULUS

        public static final java.lang.String P_STATISTICS_MODULUS
        See Also:
        Constant Field Values
      • P_STATISTICS_FILE

        public static final java.lang.String P_STATISTICS_FILE
        See Also:
        Constant Field Values
      • statisticslog

        public int statisticslog
      • modulus

        public int modulus
      • doSize

        public boolean doSize
      • doTime

        public boolean doTime
      • doSubpops

        public boolean doSubpops
      • totalSizeSoFar

        public long[] totalSizeSoFar
      • totalIndsSoFar

        public long[] totalIndsSoFar
      • totalIndsThisGen

        public long[] totalIndsThisGen
      • totalSizeThisGen

        public long[] totalSizeThisGen
      • totalFitnessThisGen

        public double[] totalFitnessThisGen
      • bestOfGeneration

        public Individual[] bestOfGeneration
      • lastTime

        public long lastTime
    • Constructor Detail

      • SimpleShortStatistics

        public SimpleShortStatistics()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.