C# Class AForge.Neuro.Learning.EvolutionaryFitness

Fitness function used for chromosomes representing collection of neural network's weights.
Inheritance: IFitnessFunction
Show file Open project: holisticware-admin/MonoVersal.AForgeNET

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 ) : System

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 ) : System
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 System