com.rapidminer.operator.features.construction
Class ExampleSetBasedIndividualOperator

java.lang.Object
  extended by com.rapidminer.operator.features.construction.ExampleSetBasedIndividualOperator
All Implemented Interfaces:
ExampleSetBasedPopulationOperator
Direct Known Subclasses:
AttributeGenerator, ConstantGeneration, DirectedGeneratingMutation, EquivalentAttributeRemoval, ExampleSetBasedSelectionMutation, FourierGeneratingMutation, FourierGenerator, GeneratingMutation, RemoveUselessAttributes

public abstract class ExampleSetBasedIndividualOperator
extends java.lang.Object
implements ExampleSetBasedPopulationOperator

A PopulationOperator that modifies a population by modifying all individuals independently. The modifications can be made each per attribute block or for single attributes.

Author:
Ingo Mierswa Exp $

Constructor Summary
ExampleSetBasedIndividualOperator()
           
 
Method Summary
abstract  java.util.List<ExampleSetBasedIndividual> operate(ExampleSetBasedIndividual individual)
          Subclasses must implement this method providing a list of new individuals.
 void operate(ExampleSetBasedPopulation pop)
          Operates on all individuals, removes the original individuals and adds the new ones.
 boolean performOperation(int generation)
          The default implementation returns true for every generation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleSetBasedIndividualOperator

public ExampleSetBasedIndividualOperator()
Method Detail

operate

public abstract java.util.List<ExampleSetBasedIndividual> operate(ExampleSetBasedIndividual individual)
                                                           throws java.lang.Exception
Subclasses must implement this method providing a list of new individuals. individual will be removed from the population so it might be useful to return a list of size 1 containing only the modified individual. If the original individual should also be part of the new population it must also be added to the result list.

Throws:
java.lang.Exception

operate

public void operate(ExampleSetBasedPopulation pop)
             throws java.lang.Exception
Operates on all individuals, removes the original individuals and adds the new ones.

Specified by:
operate in interface ExampleSetBasedPopulationOperator
Throws:
java.lang.Exception

performOperation

public boolean performOperation(int generation)
The default implementation returns true for every generation.

Specified by:
performOperation in interface ExampleSetBasedPopulationOperator


Copyright © 2001-2009 by Rapid-I