com.rapidminer.operator.preprocessing.filter
Class MissingValueReplenishment

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.ValueReplenishment
                  extended by com.rapidminer.operator.preprocessing.filter.MissingValueReplenishment
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ParameterHandler, LoggingHandler

public class MissingValueReplenishment
extends ValueReplenishment

Replaces missing values in examples. If a value is missing, it is replaced by one of the functions "minimum", "maximum", "average", and "none", which is applied to the non missing attribute values of the example set. "none" means, that the value is not replaced. The function can be selected using the parameter list columns. If an attribute's name appears in this list as a key, the value is used as the function name. If the attribute's name is not in the list, the function specified by the default parameter is used. For nominal attributes the mode is used for the average, i.e. the nominal value which occurs most often in the data. For nominal attributes and replacement type zero the first nominal value defined for this attribute is used. The replenishment "value" indicates that the user defined parameter should be used for the replacement.

Author:
Ingo Mierswa, Simon Fischer ingomierswa Exp $

Field Summary
 
Fields inherited from class com.rapidminer.operator.preprocessing.filter.ValueReplenishment
PARAMETER_COLUMNS, PARAMETER_DEFAULT, PARAMETER_REPLENISHMENT_VALUE
 
Constructor Summary
MissingValueReplenishment(OperatorDescription description)
           
 
Method Summary
 int getDefaultColumnFunction()
          Returns the index of the replenishment function which will be used for attributes listed in the parameter list "columns".
 int getDefaultFunction()
          Returns the index of the replenishment function which will be used for attributes not listed in the parameter list "columns".
 java.lang.String[] getFunctionNames()
          Returns an array of all replenishment functions.
 double getReplenishmentValue(int functionIndex, ExampleSet exampleSet, Attribute attribute, double currentValue, java.lang.String valueString)
          Returns the value of the replenishment function with the given index.
 boolean replenishValue(double currentValue)
          Returns true iff the value should be replenished.
 
Methods inherited from class com.rapidminer.operator.preprocessing.filter.ValueReplenishment
apply, getParameterTypes
 
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, 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

MissingValueReplenishment

public MissingValueReplenishment(OperatorDescription description)
Method Detail

getFunctionNames

public java.lang.String[] getFunctionNames()
Description copied from class: ValueReplenishment
Returns an array of all replenishment functions.

Specified by:
getFunctionNames in class ValueReplenishment

getDefaultFunction

public int getDefaultFunction()
Description copied from class: ValueReplenishment
Returns the index of the replenishment function which will be used for attributes not listed in the parameter list "columns".

Specified by:
getDefaultFunction in class ValueReplenishment

getDefaultColumnFunction

public int getDefaultColumnFunction()
Description copied from class: ValueReplenishment
Returns the index of the replenishment function which will be used for attributes listed in the parameter list "columns".

Specified by:
getDefaultColumnFunction in class ValueReplenishment

replenishValue

public boolean replenishValue(double currentValue)
Description copied from class: ValueReplenishment
Returns true iff the value should be replenished.

Specified by:
replenishValue in class ValueReplenishment

getReplenishmentValue

public double getReplenishmentValue(int functionIndex,
                                    ExampleSet exampleSet,
                                    Attribute attribute,
                                    double currentValue,
                                    java.lang.String valueString)
Description copied from class: ValueReplenishment
Returns the value of the replenishment function with the given index.

Specified by:
getReplenishmentValue in class ValueReplenishment


Copyright © 2001-2009 by Rapid-I