C# Class Accord.Neuro.Learning.EvolutionaryFitness

Fitness function used for chromosomes representing collection of neural network's weights.
Inheritance: IFitnessFunction
显示文件 Open project: accord-net/framework

Public Methods

Method Description
Evaluate ( IChromosome chromosome ) : double

Evaluates chromosome.

The method calculates fitness value of the specified chromosome.

EvolutionaryFitness ( ActivationNetwork network, double input, double output ) : Accord.Genetic

Initializes a new instance of the EvolutionaryFitness class.

Method Details

Evaluate() public method

Evaluates chromosome.
The method calculates fitness value of the specified chromosome.
public Evaluate ( IChromosome chromosome ) : double
chromosome IChromosome Chromosome to evaluate.
return double

EvolutionaryFitness() public method

Initializes a new instance of the EvolutionaryFitness class.
Length of inputs and outputs arrays must be equal and greater than 0. Length of each input vector must be equal to neural network's inputs count.
public EvolutionaryFitness ( ActivationNetwork network, double input, double output ) : Accord.Genetic
network ActivationNetwork Neural network for which fitness will be calculated.
input double Input data samples for neural network.
output double Output data sampels for neural network (desired output).
return Accord.Genetic