com.rapidminer.operator.features.construction
Class AttributeGenerator

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

public class AttributeGenerator
extends ExampleSetBasedIndividualOperator

This PopulationOperator generates new attributes in an individual's example table. Given a generation probability pGenerate

and the maximal number of new attributes it generates on average pGenerate * numberOfNewAttributes new attributes using generators from the list generatorList
This operator can never handle value series but only single attributes.

Author:
Ingo Mierswa

Constructor Summary
AttributeGenerator(double pGenerate, int numberOfNewAttributes, int totalMaxNumberOfAttributes, java.util.List<FeatureGenerator> generatorList, RandomGenerator random)
          Creates a new AttributeGenerator with given parameters.
 
Method Summary
 java.util.List<ExampleSetBasedIndividual> operate(ExampleSetBasedIndividual individual)
          Determines the applicable generators and generates up to numberOfNewAttributes new attributes.
 
Methods inherited from class com.rapidminer.operator.features.construction.ExampleSetBasedIndividualOperator
operate, performOperation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeGenerator

public AttributeGenerator(double pGenerate,
                          int numberOfNewAttributes,
                          int totalMaxNumberOfAttributes,
                          java.util.List<FeatureGenerator> generatorList,
                          RandomGenerator random)
Creates a new AttributeGenerator with given parameters.

Method Detail

operate

public java.util.List<ExampleSetBasedIndividual> operate(ExampleSetBasedIndividual individual)
                                                  throws java.lang.Exception
Determines the applicable generators and generates up to numberOfNewAttributes new attributes.

Specified by:
operate in class ExampleSetBasedIndividualOperator
Throws:
java.lang.Exception


Copyright © 2001-2009 by Rapid-I