|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.AbstractObservable<Operator>
com.rapidminer.operator.Operator
com.rapidminer.operator.OperatorChain
com.rapidminer.operator.features.construction.ExampleSetBasedFeatureOperator
com.rapidminer.operator.features.construction.AbstractGeneratingGeneticAlgorithm
public abstract class AbstractGeneratingGeneticAlgorithm
In contrast to its superclass GeneticAlgorithm, the
GeneratingGeneticAlgorithm generates new attributes and thus can
change the length of an individual. Therfore specialized mutation and
crossover operators are being applied. Generators are chosen at random from a
list of generators specified by boolean parameters.
Since this operator does not contain algorithms to extract features from
value series, it is restricted to example sets with only single attributes.
For automatic feature extraction from values series the value series plugin
for RapidMiner written by Ingo Mierswa should be used. It is available at http://rapid-i.com
| Field Summary | |
|---|---|
static int |
BOLTZMANN_SELECTION
|
static int |
CUT_SELECTION
|
static int |
NON_DOMINATED_SORTING_SELECTION
|
static java.lang.String |
PARAMETER_CROSSOVER_TYPE
|
static java.lang.String |
PARAMETER_DYNAMIC_SELECTION_PRESSURE
The parameter name for "If set to true the selection pressure is increased to maximum during the complete optimization run (only Boltzmann and tournament selection). |
static java.lang.String |
PARAMETER_GENERATIONS_WITHOUT_IMPROVAL
The parameter name for "Stop criterion: Stop after n generations without improval of the performance (-1: perform all generations). |
static java.lang.String |
PARAMETER_KEEP_BEST_INDIVIDUAL
The parameter name for "If set to true, the best individual of each generations is guaranteed to be selected for the next generation (elitist selection). |
static java.lang.String |
PARAMETER_MAXIMUM_NUMBER_OF_GENERATIONS
The parameter name for "Number of generations after which to terminate the algorithm. |
static java.lang.String |
PARAMETER_P_CROSSOVER
|
static java.lang.String |
PARAMETER_P_INITIALIZE
|
static java.lang.String |
PARAMETER_POPULATION_SIZE
The parameter name for "Number of individuals per generation. |
static java.lang.String |
PARAMETER_RECIPROCAL_VALUE
|
static java.lang.String |
PARAMETER_START_TEMPERATURE
The parameter name for "The scaling temperature (only Boltzmann selection). |
static java.lang.String |
PARAMETER_TOURNAMENT_SIZE
The parameter name for "The fraction of the current population which should be used as tournament members (only tournament selection). |
static java.lang.String |
PARAMETER_USE_DIFF
|
static java.lang.String |
PARAMETER_USE_DIV
|
static java.lang.String |
PARAMETER_USE_EARLY_STOPPING
|
static java.lang.String |
PARAMETER_USE_MULT
|
static java.lang.String |
PARAMETER_USE_PLUS
|
static int |
RANK_SELECTION
|
static int |
ROULETTE_WHEEL
|
static java.lang.String[] |
SELECTION_SCHEMES
|
static int |
STOCHASTIC_UNIVERSAL
|
static int |
TOURNAMENT_SELECTION
|
static int |
UNIFORM_SELECTION
|
| Fields inherited from class com.rapidminer.operator.features.construction.ExampleSetBasedFeatureOperator |
|---|
PARAMETER_MAXIMAL_FITNESS, PARAMETER_SHOW_STOP_DIALOG |
| Constructor Summary | |
|---|---|
AbstractGeneratingGeneticAlgorithm(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
ExampleSetBasedPopulation |
createInitialPopulation(ExampleSet es)
Sets up a population of given size and creates ExampleSets with randomly selected attributes (the probability to be switched on is controlled by pInitialize). |
protected ExampleSetBasedPopulationOperator |
getCrossoverPopulationOperator(ExampleSet exampleSet)
Returns an UnbalancedCrossover. |
protected abstract ExampleSetBasedPopulationOperator |
getGeneratingPopulationOperator(ExampleSet exampleSet)
Returns a specialized generating mutation, e.g. a AttributeGenerator. |
java.util.List<FeatureGenerator> |
getGenerators()
Returns a list with all generator which should be used. |
protected abstract ExampleSetBasedPopulationOperator |
getMutationPopulationOperator(ExampleSet example)
Returns an operator that performs the mutation. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
java.util.List<ExampleSetBasedPopulationOperator> |
getPostEvaluationPopulationOperators(ExampleSet input)
Returns the list with post eval pop ops. |
protected java.util.List<ExampleSetBasedPopulationOperator> |
getPostProcessingPopulationOperators(ExampleSet input)
Returns an empty list. |
java.util.List<ExampleSetBasedPopulationOperator> |
getPreEvaluationPopulationOperators(ExampleSet input)
Returns the list with pre eval pop ops. |
protected java.util.List<ExampleSetBasedPopulationOperator> |
getPreProcessingPopulationOperators(ExampleSet exampleSet)
|
boolean |
solutionGoodEnough(ExampleSetBasedPopulation pop)
Returns true if generation is >= maximum_number_of_generations or after generations_without_improval generations without improval. |
| Methods inherited from class com.rapidminer.operator.features.construction.ExampleSetBasedFeatureOperator |
|---|
doWork, evaluate, evaluate, getCheckForMaximum, getPopulation, getRandom, setCheckForMaximum |
| Methods inherited from class com.rapidminer.tools.AbstractObservable |
|---|
addObserver, addObserverAsFirst, fireUpdate, removeObserver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] SELECTION_SCHEMES
public static final int UNIFORM_SELECTION
public static final int CUT_SELECTION
public static final int ROULETTE_WHEEL
public static final int STOCHASTIC_UNIVERSAL
public static final int BOLTZMANN_SELECTION
public static final int RANK_SELECTION
public static final int TOURNAMENT_SELECTION
public static final int NON_DOMINATED_SORTING_SELECTION
public static final java.lang.String PARAMETER_POPULATION_SIZE
public static final java.lang.String PARAMETER_MAXIMUM_NUMBER_OF_GENERATIONS
public static final java.lang.String PARAMETER_USE_EARLY_STOPPING
public static final java.lang.String PARAMETER_GENERATIONS_WITHOUT_IMPROVAL
public static final java.lang.String PARAMETER_TOURNAMENT_SIZE
public static final java.lang.String PARAMETER_START_TEMPERATURE
public static final java.lang.String PARAMETER_DYNAMIC_SELECTION_PRESSURE
public static final java.lang.String PARAMETER_KEEP_BEST_INDIVIDUAL
public static final java.lang.String PARAMETER_P_INITIALIZE
public static final java.lang.String PARAMETER_P_CROSSOVER
public static final java.lang.String PARAMETER_CROSSOVER_TYPE
public static final java.lang.String PARAMETER_USE_PLUS
public static final java.lang.String PARAMETER_USE_DIFF
public static final java.lang.String PARAMETER_USE_MULT
public static final java.lang.String PARAMETER_USE_DIV
public static final java.lang.String PARAMETER_RECIPROCAL_VALUE
| Constructor Detail |
|---|
public AbstractGeneratingGeneticAlgorithm(OperatorDescription description)
| Method Detail |
|---|
protected abstract ExampleSetBasedPopulationOperator getGeneratingPopulationOperator(ExampleSet exampleSet)
throws OperatorException
AttributeGenerator.
OperatorException
protected abstract ExampleSetBasedPopulationOperator getMutationPopulationOperator(ExampleSet example)
throws OperatorException
OperatorException
protected java.util.List<ExampleSetBasedPopulationOperator> getPostProcessingPopulationOperators(ExampleSet input)
throws OperatorException
OperatorException
public final java.util.List<ExampleSetBasedPopulationOperator> getPreEvaluationPopulationOperators(ExampleSet input)
throws OperatorException
getPreEvaluationPopulationOperators in class ExampleSetBasedFeatureOperatorOperatorException
public final java.util.List<ExampleSetBasedPopulationOperator> getPostEvaluationPopulationOperators(ExampleSet input)
throws OperatorException
getPostEvaluationPopulationOperators in class ExampleSetBasedFeatureOperatorOperatorExceptionpublic boolean solutionGoodEnough(ExampleSetBasedPopulation pop)
solutionGoodEnough in class ExampleSetBasedFeatureOperator
public ExampleSetBasedPopulation createInitialPopulation(ExampleSet es)
throws UndefinedParameterError
createInitialPopulation in class ExampleSetBasedFeatureOperatorUndefinedParameterError
protected java.util.List<ExampleSetBasedPopulationOperator> getPreProcessingPopulationOperators(ExampleSet exampleSet)
throws OperatorException
OperatorException
protected ExampleSetBasedPopulationOperator getCrossoverPopulationOperator(ExampleSet exampleSet)
throws UndefinedParameterError
UnbalancedCrossover.
UndefinedParameterErrorpublic java.util.List<FeatureGenerator> getGenerators()
public java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class ExampleSetBasedFeatureOperator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||