C# Class SharpNeat.Core.EvaluationInfo

Encapsulates genome evaluation data; specifically whether the genome has been evaluated, the genome's fitness, how many times the genome has been evaluated and if more than once then the mean fitness. Mean fitness is sometimes used when evaluations are non-determininstic (where each evaluation with the same parameters results in a different fitness, usually following some distribution curve) or else successive evaluations use different evaluation parameters and therefore result in different fitnesses. This approach is sometimes used in order to evaluate against a very computationally expensive fitness scheme, or indeed a computationally intractable scheme - i.e. we only execute against some subset of the problem space for each genome evaluation, and thus we obtain a more representative value for a genome's fitness by averaging over successive evaluations.
ファイルを表示 Open project: colgreen/sharpneat

Public Methods

Method Description
EvaluationInfo ( int fitnessHistoryLength ) : System

Construct and allocate the specified amount of memory for fitness history. Use zero if you don't require fitness history - but note that no arithmetic mean will be available.

IncrEvaluationPassCount ( ) : void

Increments EvaluationPassCount.

SetFitness ( double fitness ) : void

Assign a fitness. If a fitness history buffer was created then the value will be enqueued in the buffer.

Method Details

EvaluationInfo() public method

Construct and allocate the specified amount of memory for fitness history. Use zero if you don't require fitness history - but note that no arithmetic mean will be available.
public EvaluationInfo ( int fitnessHistoryLength ) : System
fitnessHistoryLength int
return System

IncrEvaluationPassCount() public method

Increments EvaluationPassCount.
public IncrEvaluationPassCount ( ) : void
return void

SetFitness() public method

Assign a fitness. If a fitness history buffer was created then the value will be enqueued in the buffer.
public SetFitness ( double fitness ) : void
fitness double
return void