com.rapidminer.operator.features.construction
Class ExampleSetBasedSelectionCrossover
java.lang.Object
com.rapidminer.operator.features.construction.ExampleSetBasedSelectionCrossover
- All Implemented Interfaces:
- ExampleSetBasedPopulationOperator
- Direct Known Subclasses:
- UnbalancedCrossover
public class ExampleSetBasedSelectionCrossover
- extends java.lang.Object
- implements ExampleSetBasedPopulationOperator
Crossover operator for the used bitlists of example sets. An example set is
selected with a given fixed propability and a mating partner is determined
randomly. Crossover can be either one point, uniform or shuffled. Please note
that shuffled crossover first uniformly determines the number of attributes
which should be swapped. Therefore uniform and shuffle crossover are not
equivalent.
Only useful if all example sets have the same (number of) attributes.
- Author:
- Simon Fischer, Ingo Mierswa
Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CROSSOVER_TYPES
public static final java.lang.String[] CROSSOVER_TYPES
ONE_POINT
public static final int ONE_POINT
- See Also:
- Constant Field Values
UNIFORM
public static final int UNIFORM
- See Also:
- Constant Field Values
SHUFFLE
public static final int SHUFFLE
- See Also:
- Constant Field Values
ExampleSetBasedSelectionCrossover
public ExampleSetBasedSelectionCrossover(int type,
double prob,
java.util.Random random,
int minNumber,
int maxNumber,
int exactNumber)
performOperation
public boolean performOperation(int generation)
- The default implementation returns true for every generation.
- Specified by:
performOperation in interface ExampleSetBasedPopulationOperator
getType
public int getType()
crossover
public void crossover(AttributeWeightedExampleSet es1,
AttributeWeightedExampleSet es2)
operate
public void operate(ExampleSetBasedPopulation population)
- Description copied from interface:
ExampleSetBasedPopulationOperator
- Modifies the population.
- Specified by:
operate in interface ExampleSetBasedPopulationOperator
Copyright © 2001-2009 by Rapid-I