|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectgeneticWedge.gp.AbstractPopulation
public abstract class AbstractPopulation
AbstractPopulation is the parent of all Population objects. It contains only the most basic functions and defines additional abstract functions that must be implemented by any subclass.
Nested Class Summary | |
---|---|
static class |
AbstractPopulation.FitnessFunction
The FitnessFunction is used to select Individuals from a Population for breeding. |
static class |
AbstractPopulation.SelectionMethod
SelectionMethod determines how Individuals are selected for breeding. |
Field Summary | |
---|---|
protected double[] |
allFitnesses
An array containing the (training) fitnesses of all Individuals in this Population |
protected int |
aurocSampleSize
The number of points used to estimate the AUROC (and AOREC). |
protected double |
averageTrainFitness
The average (mean) training fitness of all members of the population |
protected double |
averageValidationFitness
The average (mean) validation fitness of all members of the population |
protected int |
bestIndex
The index of the Individual with the best (training) fitnesses |
protected double |
bestTrainFitness
The best training fitness obtained by any member of the current population |
protected double |
bestTrainFitnessSoFar
The best validation fitness obtained by any member of the current population in any generation so far |
protected double |
bestValidationFitness
The best validation fitness obtained by any member of the current population |
protected double |
bestValidationFitnessSoFar
The best training fitness obtained by any member of the current population in any generation so far |
protected AbstractPopulation.FitnessFunction |
fitnessFunction
The FitnessFunction used to evaluate Individuals. |
protected int |
generationNumber
The number of generations of evolution that have occurred |
protected int |
maxGenerations
The maximum number of generations of evolution that may occur |
protected PopulationDescriptor |
popDescriptor
The PopulationDescriptor that describes this Population |
protected int |
popSize
The current population size. |
protected AbstractPopulation.FitnessFunction |
recFitnessFunction
The FitnessFunction used to evaluate the AOREC. |
protected int |
startingPopSize
The starting population size. |
protected int |
tournamentSize
The size of the tournament used during tournament selection. |
Constructor Summary | |
---|---|
AbstractPopulation()
|
Method Summary | |
---|---|
int |
getAUROCSampleSize()
AUROC sample size is also used for REC curves and Combined Classification Error. |
abstract double |
getAverageTrainingFitness()
Returns the average fitness of all Individuals on the training data. |
abstract double |
getAverageValidationFitness()
Returns the average fitness of all Individuals on the validation data. |
abstract double |
getBestTrainingFitness()
Returns the fitness of the best Individual on the training data. |
abstract double |
getBestValidationFitness()
Returns the fitness of the best Individual on the validation data. |
int |
getGenerationNumber()
Returns the number of generations of evolution that have occurred. |
int |
getInitialPopulationSize()
Returns the initial population size. |
int |
getMaxGenerations()
Returns the maximum number of generations for which the population may evolve. |
PopulationDescriptor |
getPopulationDescriptor()
Returns a Population Descriptor object, which holds information concerning the Population as a whole. |
int |
getPopulationSize()
Returns the current population size. |
AbstractPopulation.FitnessFunction |
getRECFitnessFunction()
Returns the FitnessFunction to be used when constructing a REC curve. |
int |
getTournamentSize()
Returns the tournament size to be used during tournament selection. |
void |
setAUROCSampleSize(int sampleSize)
AUROC sample size is also used for REC curves and Combined Classification Error. |
void |
setMaxGenerations(int maxGenerations)
Sets the maximum number of generations for which the population may evolve. |
void |
setRECFitnessFunction(AbstractPopulation.FitnessFunction recFunction)
Sets the FitnessFunction to be used when constructing a REC curve. |
void |
setTournamentSize(int tournamentSize)
Sets the size of the tournament to be used in tournament selection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double[] allFitnesses
protected int bestIndex
protected double averageTrainFitness
protected double bestTrainFitness
protected double averageValidationFitness
protected double bestValidationFitness
protected int generationNumber
protected int maxGenerations
protected double bestValidationFitnessSoFar
protected double bestTrainFitnessSoFar
protected int startingPopSize
protected int popSize
protected int tournamentSize
protected PopulationDescriptor popDescriptor
protected AbstractPopulation.FitnessFunction fitnessFunction
protected int aurocSampleSize
protected AbstractPopulation.FitnessFunction recFitnessFunction
Constructor Detail |
---|
public AbstractPopulation()
Method Detail |
---|
public abstract double getBestTrainingFitness()
public abstract double getBestValidationFitness()
public abstract double getAverageTrainingFitness()
public abstract double getAverageValidationFitness()
public int getGenerationNumber()
public int getInitialPopulationSize()
public int getPopulationSize()
public void setMaxGenerations(int maxGenerations)
public int getMaxGenerations()
public void setTournamentSize(int tournamentSize)
public int getTournamentSize()
public PopulationDescriptor getPopulationDescriptor()
public void setAUROCSampleSize(int sampleSize)
public int getAUROCSampleSize()
public void setRECFitnessFunction(AbstractPopulation.FitnessFunction recFunction)
public AbstractPopulation.FitnessFunction getRECFitnessFunction()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |