com.rapidminer.operator.features.construction
Class ExampleSetBasedTournamentSelection

java.lang.Object
  extended by com.rapidminer.operator.features.construction.ExampleSetBasedTournamentSelection
All Implemented Interfaces:
ExampleSetBasedPopulationOperator

public class ExampleSetBasedTournamentSelection
extends java.lang.Object
implements ExampleSetBasedPopulationOperator

Performs tournaments with k participants. The winner of each tournament is added to the next population. This will be repeated until the desired population size is reached. The tournament size k represents the selection pressure. For small sizes (like 2) relatively bad individuals have a good chance to survive. If k reaches the population size, only the best individual will survive.

Author:
Ingo Mierswa Exp $

Constructor Summary
ExampleSetBasedTournamentSelection(int popSize, double tournamentFraction, int maxGenerations, boolean dynamic, boolean keepBest, java.util.Random random)
           
 
Method Summary
 void operate(ExampleSetBasedPopulation population)
          Modifies the population.
 boolean performOperation(int generation)
          Indicates if the operation should be performed in the given generation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleSetBasedTournamentSelection

public ExampleSetBasedTournamentSelection(int popSize,
                                          double tournamentFraction,
                                          int maxGenerations,
                                          boolean dynamic,
                                          boolean keepBest,
                                          java.util.Random random)
Method Detail

performOperation

public boolean performOperation(int generation)
Description copied from interface: ExampleSetBasedPopulationOperator
Indicates if the operation should be performed in the given generation. Allows pop ops which works only in a part of the generations.

Specified by:
performOperation in interface ExampleSetBasedPopulationOperator

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