org.encog.ml.prg.species
Class PrgSpeciation
- java.lang.Object
-
- org.encog.ml.ea.species.ThresholdSpeciation
-
- org.encog.ml.prg.species.PrgSpeciation
-
- All Implemented Interfaces:
- java.io.Serializable, Speciation
public class PrgSpeciation extends ThresholdSpeciation
Perform speciation for two Encog programs. This is a threshold based speciation, similar to that used for NEAT. Any genomes with a compatibility score below a specified threshold will be in the same species.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description PrgSpeciation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetCompatibilityScore(Genome genome1, Genome genome2)Determine how compatible two genomes are.-
Methods inherited from class org.encog.ml.ea.species.ThresholdSpeciation
addSpeciesMember, findBestSpecies, getCompatibilityThreshold, getMaxNumberOfSpecies, getNumGensAllowedNoImprovement, getOwner, getSortGenomes, init, performSpeciation, removeSpecies, setCompatibilityThreshold, setMaxNumberOfSpecies, setNumGensAllowedNoImprovement, setSortGenomes
-
-
-
-
Method Detail
-
getCompatibilityScore
public double getCompatibilityScore(Genome genome1, Genome genome2)
Determine how compatible two genomes are. More compatible genomes will be placed into the same species. The lower the number, the more compatible.- Specified by:
getCompatibilityScorein classThresholdSpeciation- Parameters:
genome1- The first genome.genome2- The second genome.- Returns:
- The compatability level.
-
-
DMelt 3.0 © DataMelt by jWork.ORG