C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

EvaluationInfo() публичный Метод

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
Результат System

IncrEvaluationPassCount() публичный Метод

Increments EvaluationPassCount.
public IncrEvaluationPassCount ( ) : void
Результат void

SetFitness() публичный Метод

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
Результат void