|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.ea.species.ThresholdSpeciation
public abstract class ThresholdSpeciation
Speciate based on threshold. Any genomes with a compatibility score below a level will be in the same species.
Constructor Summary | |
---|---|
ThresholdSpeciation()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThresholdSpeciation()
Method Detail |
---|
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 Speciation
theOwner
- The owner.public void performSpeciation(List<Genome> genomeList)
performSpeciation
in interface Speciation
genomeList
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |