A compute implementation for the case that the parallelism is already handled inside the fitness calculation function itself, so that the individuals of the population are evaluated in sequence.
ParallelDataSetCompute
Type Parameters
| Name | Description |
|---|---|
chr | The chromosome type of the genetic algorithm. |
01 Syntax
Microsoft.VisualBasic.MachineLearning.Darwinism.GAF.Population.ParallelDataSetCompute`1
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| ComputeFitness | 1 | the parallel is running in fitness calculation function, so we run sequential at here. |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| verbose | 1 | Whether a progress bar should be displayed while the fitness values are being evaluated? The default value is True. |
04 Members
ComputeFitness(FitnessPool(Of `0), PopulationCollection(Of `0))
the parallel is running in fitness calculation function, so we run sequential at here.
Parameters
| Name | Type | Description |
|---|---|---|
comparator | FitnessPool(Of `0) | parallel computation between the dataset in this fitness calculation |
source | PopulationCollection(Of `0) | The target population collection. |
Returns
A sequence of the fitness value of each individual.
verbose
Whether a progress bar should be displayed while the fitness values are being evaluated? The default value is True.
Returns
A Boolean value.