org.encog.ml.ea.species
public abstract class ThresholdSpeciation extends Object implements Speciation, Serializable
| Constructor and Description |
|---|
ThresholdSpeciation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSpeciesMember(Species species,
Genome genome)
Add a genome.
|
Species |
findBestSpecies()
Find the best species.
|
abstract double |
getCompatibilityScore(Genome genome1,
Genome genome2)
Determine how compatible two genomes are.
|
double |
getCompatibilityThreshold() |
int |
getMaxNumberOfSpecies() |
int |
getNumGensAllowedNoImprovement() |
EvolutionaryAlgorithm |
getOwner() |
SortGenomesForSpecies |
getSortGenomes() |
void |
init(EvolutionaryAlgorithm theOwner)
Setup the speciation strategy.
|
void |
performSpeciation(List<Genome> genomeList)
Perform the speciation.
|
void |
removeSpecies(Species species)
Attempt to remove a removable species.
|
void |
setCompatibilityThreshold(double compatibilityThreshold) |
void |
setMaxNumberOfSpecies(int maxNumberOfSpecies) |
void |
setNumGensAllowedNoImprovement(int numGensAllowedNoImprovement) |
void |
setSortGenomes(SortGenomesForSpecies sortGenomes) |
public void addSpeciesMember(Species species, Genome genome)
species - The species to add to.genome - The genome to add.public Species findBestSpecies()
public void removeSpecies(Species species)
species - The species to attempt to remove.public double getCompatibilityThreshold()
public int getMaxNumberOfSpecies()
public int getNumGensAllowedNoImprovement()
public EvolutionaryAlgorithm getOwner()
public SortGenomesForSpecies getSortGenomes()
public void init(EvolutionaryAlgorithm theOwner)
init in interface SpeciationtheOwner - The owner.public void performSpeciation(List<Genome> genomeList)
performSpeciation in interface SpeciationgenomeList - The genomes to speciate.public void setCompatibilityThreshold(double compatibilityThreshold)
compatibilityThreshold - the compatibilityThreshold to setpublic void setMaxNumberOfSpecies(int maxNumberOfSpecies)
maxNumberOfSpecies - the maxNumberOfSpecies to setpublic void setNumGensAllowedNoImprovement(int numGensAllowedNoImprovement)
numGensAllowedNoImprovement - the numGensAllowedNoImprovement to setpublic void setSortGenomes(SortGenomesForSpecies sortGenomes)
sortGenomes - the sortGenomes to setpublic abstract double getCompatibilityScore(Genome genome1, Genome genome2)
genome1 - The first genome.genome2 - The second genome.Copyright © 2014. All Rights Reserved.