weka.filters.supervised.attribute.gpattributegeneration
Class Epoch

java.lang.Object
  extended by 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()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Epoch

public Epoch()
Method Detail

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 on
evalMethod - Fitness evaluation method to use
data - Data to use to evaluate the fitness of individuals
operatorProp - Operator proportion to use when evolving populations
rand - Random number generator
functions - Function nodes
selectionMethod - Selection method to use when evolving individuals
Returns:
A new population on which an epoch has been run