com.rapidminer.operator.features.selection
Class SaveIntermediateWeights

java.lang.Object
  extended by com.rapidminer.operator.features.selection.SaveIntermediateWeights
All Implemented Interfaces:
PopulationOperator

public class SaveIntermediateWeights
extends java.lang.Object
implements PopulationOperator

This population operator writes the currently best weights into the specified file.

Author:
Ingo Mierswa

Constructor Summary
SaveIntermediateWeights(AbstractGeneticAlgorithm operator, int whichGeneration, java.lang.String[] attributeNames)
           
 
Method Summary
 void operate(Population pop)
          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

SaveIntermediateWeights

public SaveIntermediateWeights(AbstractGeneticAlgorithm operator,
                               int whichGeneration,
                               java.lang.String[] attributeNames)
Method Detail

operate

public void operate(Population pop)
             throws java.lang.Exception
Description copied from interface: PopulationOperator
Modifies the population.

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

performOperation

public boolean performOperation(int generation)
Description copied from interface: PopulationOperator
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 PopulationOperator


Copyright © 2001-2009 by Rapid-I