edu.udo.cs.yale.operator.features.construction
Class AGA
java.lang.Object
edu.udo.cs.yale.operator.Operator
edu.udo.cs.yale.operator.OperatorChain
edu.udo.cs.yale.operator.features.FeatureOperator
edu.udo.cs.yale.operator.features.selection.AbstractGeneticAlgorithm
edu.udo.cs.yale.operator.features.construction.AbstractGeneratingGeneticAlgorithm
edu.udo.cs.yale.operator.features.construction.GeneratingGeneticAlgorithm
edu.udo.cs.yale.operator.features.construction.AGA
- All Implemented Interfaces:
- ConfigurationListener
public class AGA
- extends GeneratingGeneticAlgorithm
Basically the same operator as the
GeneratingGeneticAlgorithm
operator.
This version adds additional generators and improves the simple GGA approach by providing
some basic intron prevention techniques. In general, this operator seems to work better than
the original approach but frequently deliver inferior results compared to the operator
YAGGA2
.
- Version:
- $Id: AGA.java,v 1.5 2006/10/02 22:35:50 ingomierswa Exp $
- Author:
- Ingo Mierswa
Method Summary |
IOObject[] |
apply()
Applies the feature operator:
collects the pre- and postevaluation operators
create an initial population
evaluate the initial population
loop as long as solution is not good enough
apply all pre evaluation operators
evaluate the population
update the population's best individual
apply all post evaluation operators
return all generation's best individual
|
java.util.List<FeatureGenerator> |
getGenerators()
Returns a list with all generator which should be used. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of
this operator. |
protected java.util.List<PopulationOperator> |
getPreProcessingPopulationOperators(ExampleSet input)
Returns an empty list. |
Methods inherited from class edu.udo.cs.yale.operator.features.FeatureOperator |
evaluate, evaluate, getCheckForMaximum, getInnerOperatorCondition, getInputClasses, getMaxNumberOfInnerOperators, getMinNumberOfInnerOperators, getNumberOfSteps, getOutputClasses, getRandom, setCheckForMaximum |
Methods inherited from class edu.udo.cs.yale.operator.OperatorChain |
addAddListener, addOperator, addOperator, checkDeprecations, checkIO, checkNumberOfInnerOperators, checkProperties, clearErrorList, clearStepCounter, cloneOperator, countStep, createExperimentTree, delete, experimentFinished, experimentStarts, getAllInnerOperators, getCurrentStep, getIndexOfOperator, getInnerOperatorForName, getInnerOperatorsXML, getNumberOfAllOperators, getNumberOfChildrensSteps, getNumberOfOperators, getOperator, getOperatorFromAll, getOperators, isEnabled, performAdditionalChecks, removeAddListener, removeOperator, setEnabled, setExperiment, shouldReturnInnerOutput |
Methods inherited from class edu.udo.cs.yale.operator.Operator |
addError, addValue, addWarning, apply, createExperimentTree, createFromXML, createMarkedExperimentTree, getAddOnlyAdditionalOutput, getApplyCount, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getErrorList, getExperiment, getInput, getInput, getInput, getInputDescription, getIOContainerForInApplyLoopBreakpoint, getName, getOperatorClassName, getOperatorDescription, getParameter, getParameterAsBoolean, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsInt, getParameterAsString, getParameterList, getParameters, getParameterType, getParent, getStartTime, getStatus, getUserDescription, getValue, getValues, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isParameterSet, logMessage, register, remove, rename, resume, setBreakpoint, setInput, setListParameter, setOperatorParameters, setParameter, setParameters, setParent, setUserDescription, toString, writeXML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AGA
public AGA(OperatorDescription description)
apply
public IOObject[] apply()
throws OperatorException
- Description copied from class:
FeatureOperator
- Applies the feature operator:
- collects the pre- and postevaluation operators
- create an initial population
- evaluate the initial population
- loop as long as solution is not good enough
- apply all pre evaluation operators
- evaluate the population
- update the population's best individual
- apply all post evaluation operators
- return all generation's best individual
- Overrides:
apply
in class FeatureOperator
- Returns:
- the last inner operator's output or the input itself if the chain
is empty.
- Throws:
OperatorException
getGenerators
public java.util.List<FeatureGenerator> getGenerators()
- Description copied from class:
AbstractGeneratingGeneticAlgorithm
- Returns a list with all generator which should be used.
- Overrides:
getGenerators
in class AbstractGeneratingGeneticAlgorithm
getPreProcessingPopulationOperators
protected java.util.List<PopulationOperator> getPreProcessingPopulationOperators(ExampleSet input)
throws OperatorException
- Description copied from class:
AbstractGeneticAlgorithm
- Returns an empty list.
- Overrides:
getPreProcessingPopulationOperators
in class AbstractGeneratingGeneticAlgorithm
- Throws:
OperatorException
getParameterTypes
public java.util.List<ParameterType> getParameterTypes()
- Description copied from class:
Operator
- Returns a list of ParameterTypes describing the parameters of
this operator. The default implementation returns an empty list if no
input objects can be retained and special parameters for those input
objects which can be prevented from being consumed.
- Overrides:
getParameterTypes
in class GeneratingGeneticAlgorithm
Copyright © 2001-2006