weka.filters.supervised.attribute.gpattributegeneration
Class Epoch
java.lang.Object
weka.filters.supervised.attribute.gpattributegeneration.Epoch
public class Epoch
- extends java.lang.Object
Provides methods that control the running of an epoch.
- Author:
- Colin Noakes
Constructor Summary |
Epoch()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Epoch
public Epoch()
runEpoch
public Population runEpoch(Population population,
EnumFitnessEvaluationMethod evalMethod,
Instances data,
double[] operatorProp,
java.util.Random rand,
java.util.ArrayList<java.lang.String> functions,
EnumSelectionMethod selectionMethod,
Classifier classifier,
int[] validAttributes)
- Runs an epoch. Takes a population and runs a complete epoch on it; returning a new population.
An Epoch 'run' starts at selection, genetic operation and fitness evaluation.
- Parameters:
population
- the population to run an epoch onevalMethod
- Fitness evaluation method to usedata
- Data to use to evaluate the fitness of individualsoperatorProp
- Operator proportion to use when evolving populationsrand
- Random number generatorfunctions
- Function nodesselectionMethod
- Selection method to use when evolving individuals
- Returns:
- A new population on which an epoch has been run