com.rapidminer.operator.preprocessing.filter
Class NumericToNominal

java.lang.Object
  extended by com.rapidminer.operator.Operator
      extended by com.rapidminer.operator.AbstractExampleSetProcessing
          extended by com.rapidminer.operator.preprocessing.AbstractDataProcessing
              extended by com.rapidminer.operator.preprocessing.filter.NumericToNominal
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ParameterHandler, LoggingHandler
Direct Known Subclasses:
NumericToBinominal, NumericToFormattedNominal, NumericToPolynominal

public abstract class NumericToNominal
extends AbstractDataProcessing

Converts all numerical attributes to nominal ones.

Author:
Ingo Mierswa

Constructor Summary
NumericToNominal(OperatorDescription description)
           
 
Method Summary
 ExampleSet apply(ExampleSet exampleSet)
          Delegate for the apply method.
 void cleanUp()
          Will be invoked after the setValue method was invoked for each example.
protected abstract  int getGeneratedAttributevalueType()
          Returns Ontology.NOMINAL or one of its subtypes.
 void init()
          Will be invoked before the setValue method is invoked for each example.
protected  Attribute makeAttribute()
           
protected abstract  void setValue(Example example, Attribute newAttribute, double value)
           
 
Methods inherited from class com.rapidminer.operator.AbstractExampleSetProcessing
apply, getInputClasses, getOutputClasses
 
Methods inherited from class com.rapidminer.operator.Operator
addError, addValue, addWarning, apply, checkDeprecations, checkForStop, checkIO, checkProperties, clearErrorList, cloneOperator, createExperimentTree, createExperimentTree, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, createProcessTree, getAddOnlyAdditionalOutput, getApplyCount, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getEncoding, getErrorList, getExperiment, getInnerOperatorsXML, getInput, getInput, getInput, getInputDescription, getIOContainerForInApplyLoopBreakpoint, getIODescription, getLog, getName, getOperatorClassName, getOperatorDescription, getParameter, getParameterAsBoolean, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsFile, getParameterAsInputStream, getParameterAsInt, getParameterAsMatrix, getParameterAsString, getParameterList, getParameters, getParameterType, getParameterTypes, getParent, getProcess, getStartTime, getStatus, getUserDescription, getValue, getValues, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isDebugMode, isEnabled, isExpanded, isParallel, isParameterSet, log, logError, logNote, logWarning, performAdditionalChecks, processFinished, processStarts, register, registerOperator, remove, rename, resume, setApplyCount, setBreakpoint, setEnabled, setExpanded, setInput, setListParameter, setOperatorParameters, setParameter, setParameters, setParent, setUserDescription, toString, unregisterOperator, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumericToNominal

public NumericToNominal(OperatorDescription description)
Method Detail

setValue

protected abstract void setValue(Example example,
                                 Attribute newAttribute,
                                 double value)
                          throws OperatorException
Throws:
OperatorException

getGeneratedAttributevalueType

protected abstract int getGeneratedAttributevalueType()
Returns Ontology.NOMINAL or one of its subtypes.


makeAttribute

protected Attribute makeAttribute()

init

public void init()
          throws OperatorException
Will be invoked before the setValue method is invoked for each example. This default implementation does nothing.

Throws:
OperatorException

cleanUp

public void cleanUp()
             throws OperatorException
Will be invoked after the setValue method was invoked for each example. This default implementation does nothing.

Throws:
OperatorException

apply

public ExampleSet apply(ExampleSet exampleSet)
                 throws OperatorException
Description copied from class: AbstractExampleSetProcessing
Delegate for the apply method. In most cases, the returned example set will be the same as the example set or a modified clone.

Specified by:
apply in class AbstractExampleSetProcessing
Throws:
OperatorException


Copyright © 2001-2009 by Rapid-I