geneticWedge.gp
Class PopulationV
java.lang.Object
geneticWedge.gp.AbstractPopulation
geneticWedge.gp.Population
geneticWedge.gp.PopulationV
public class PopulationV
- extends Population
Extends Population to include the calls to the GPDone & GPGeneration events
in the evolve method, and addition of supporting methods.
For use when the GP need to run Interactively - e.g. JavaGP GUI.
Fields inherited from class geneticWedge.gp.AbstractPopulation |
allFitnesses, aurocSampleSize, averageTrainFitness, averageValidationFitness, bestIndex, bestTrainFitness, bestTrainFitnessSoFar, bestValidationFitness, bestValidationFitnessSoFar, fitnessFunction, generationNumber, maxGenerations, popDescriptor, popSize, recFitnessFunction, startingPopSize, tournamentSize |
Constructor Summary |
PopulationV(int populationSize,
PopulationDescriptor descriptor)
The Population constructor takes the population size and a PopulationDescriptor as variables. |
Methods inherited from class geneticWedge.gp.Population |
collectTransmissionInfo, evolve, evolveOneGeneration, getAllCutDepthCorrelations, getAllSquaredDistances, getAverageComplexity, getAverageCutDepthCorrelation, getAverageFitness, getAverageIndividualLength, getAverageSquaredDistance, getAverageSquaredDistance, getAverageSquaredDistance, getAverageTrainingFitness, getAverageValidationFitness, getBestIndividual, getBestTrainingFitness, getBestValidatedIndividual, getBestValidationFitness, getBroodUse, getCrossover, getDiversity, getFitnesses, getFitnessFunction, getFitnessShare, getIndividuals, getKeepDominated, getMaximumIndividualDepth, getMaximumIndividualLength, getMultiObjective, getMutation, getPerformanceFunctions, getRankGradient, getShareType, getShareWeightings, getSquaredDistances, getTransmissionInfo, hasNoDiversity, removeDominatedIndividuals, removeDuplicatedIndividuals, savePopulation, setBroodUse, setCrossover, setFitnessFunction, setFitnessShare, setKeepDominated, setMaximumIndividualDepth, setMaximumIndividualLength, setMutation, setPerformanceFunctions, setPrintStatus, setRankGradient, setShareWeightings, setSingleObjectiveRatio, setTransmissionWritingParameters, setTruncationParameters, ShellSortIndividuals, ShellSortIndividuals, ShellSortIndividuals, ShellSortIndividuals |
Methods inherited from class geneticWedge.gp.AbstractPopulation |
getAUROCSampleSize, getGenerationNumber, getInitialPopulationSize, getMaxGenerations, getPopulationDescriptor, getPopulationSize, getRECFitnessFunction, getTournamentSize, setAUROCSampleSize, setMaxGenerations, setRECFitnessFunction, setTournamentSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PopulationV
public PopulationV(int populationSize,
PopulationDescriptor descriptor)
- The Population constructor takes the population size and a PopulationDescriptor as variables.
stopnow
public void stopnow()
addGPDoneHandler
public void addGPDoneHandler(GPEventHandler gh)
addGPGenerationHandler
public void addGPGenerationHandler(GPEventHandler gh)
removeGPDoneHandler
public void removeGPDoneHandler(GPEventHandler gh)
removeGPGeneration
public void removeGPGeneration(GPEventHandler gh)
fireGen
protected void fireGen()
evolve
public boolean evolve(boolean steadyState,
AbstractPopulation.SelectionMethod selectMethod,
double[][] inputs,
double[] targetOutputs,
double[][] validationInputs,
double[] validationTargetOutputs,
StoppingCriterion stopCriterion)
- If this method is called in steadyState mode with a selectMethod that uses roulette wheel selection
(FITNESS_PROPORTIONAL, RANK or FUSS), elitist selection will not occur, even if an elite size has been set.
In order to acieve elitist selection with these methods, generational evolution must be applied.
- Overrides:
evolve
in class Population