Package | Description |
---|---|
org.apache.ignite.ml.util.genetic |
Contains some genetic algorithms for discrete optimization task in ML module locally.
|
Modifier and Type | Method and Description |
---|---|
Chromosome |
Chromosome.copy()
Creates chromosome copy.
|
Chromosome |
Population.getChromosome(int idx)
Returns an individual chromosome.
|
Chromosome |
Population.getChromosome(Integer idx)
Returns the chromosome by given index.
|
Chromosome[] |
Population.selectBestKChromosome(int k)
Selects the top K chromosomes by fitness value from the smallest to the largest.
|
Modifier and Type | Method and Description |
---|---|
void |
Population.setChromosome(int idx,
Chromosome chromosome)
Sets the chromsome for given index.
|
Modifier and Type | Method and Description |
---|---|
void |
Population.calculateFitnessForAll(Function<Chromosome,Double> fitnessFunction)
Calculates fintness for all chromosomes with custom fitness function.
|
double |
Population.calculateFitnessForChromosome(int idx,
Function<Chromosome,Double> fitnessFunction)
Calculates fitness for chromosome found by index with custom fitness function.
|
GeneticAlgorithm |
GeneticAlgorithm.withFitnessFunction(Function<Chromosome,Double> fitnessFunction)
Sets the custom fitness function.
|
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024