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

Class SimpleStatistics

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


    public class SimpleStatistics
    extends Statistics
    implements SteadyStateStatisticsForm
    A basic Statistics class suitable for simple problem applications. SimpleStatistics prints out the best individual, per subpopulation, each generation. At the end of a run, it also prints out the best individual of the run. SimpleStatistics outputs this data to a log which may either be a provided file or stdout. Compressed files will be overridden on restart from checkpoint; uncompressed files will be appended on restart.

    SimpleStatistics implements a simple version of steady-state statistics: if it quits before a generation boundary, it will include the best individual discovered, even if the individual was discovered after the last boundary. This is done by using individualsEvaluatedStatistics(...) to update best-individual-of-generation in addition to doing it in postEvaluationStatistics(...).

    Parameters

    base.gzip
    boolean
    (whether or not to compress the file (.gz suffix added)
    base.file
    String (a filename), or nonexistant (signifies stdout)
    (the log for statistics)
    See Also:
    Serialized Form
    • Field Detail

      • P_STATISTICS_FILE

        public static final java.lang.String P_STATISTICS_FILE
        log file parameter
        See Also:
        Constant Field Values
      • P_DO_DESCRIPTION

        public static final java.lang.String P_DO_DESCRIPTION
        See Also:
        Constant Field Values
      • P_DO_PER_GENERATION_DESCRIPTION

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

        public int statisticslog
        The Statistics' log
      • best_of_run

        public Individual[] best_of_run
        The best individual we've found so far
      • compress

        public boolean compress
        Should we compress the file?
      • doFinal

        public boolean doFinal
      • doGeneration

        public boolean doGeneration
      • doMessage

        public boolean doMessage
      • doDescription

        public boolean doDescription
      • doPerGenerationDescription

        public boolean doPerGenerationDescription
    • Constructor Detail

      • SimpleStatistics

        public SimpleStatistics()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.