com.rapidminer.operator.preprocessing.discretization
Class MinMaxBinDiscretization

java.lang.Object
  extended by com.rapidminer.tools.AbstractObservable<Operator>
      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.PreprocessingOperator
                      extended by com.rapidminer.operator.preprocessing.discretization.AbstractDiscretizationOperator
                          extended by com.rapidminer.operator.preprocessing.discretization.MinMaxBinDiscretization
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ResourceConsumer, ParameterHandler, LoggingHandler, Observable<Operator>

public class MinMaxBinDiscretization
extends AbstractDiscretizationOperator

This operator discretizes all numeric attributes in the dataset into nominal attributes. This discretization is performed by simple binning, i.e. the specified number of equally sized bins is created and the numerical values are simply sorted into those bins. Skips all special attributes including the label. In contrast to the usual simple binning performed by the BinDiscretization, this operator bins the values into a predefined range (and not into the range defined by the minimum and maximum values taken from the data).

Author:
Ingo Mierswa

Field Summary
static java.lang.String PARAMETER_AUTOMATIC_NUMBER_OF_DIGITS
           
static java.lang.String PARAMETER_MAX_VALUE
           
static java.lang.String PARAMETER_MIN_VALUE
           
static java.lang.String PARAMETER_NUMBER_OF_BINS
          Indicates the number of used bins.
static java.lang.String PARAMETER_NUMBER_OF_DIGITS
           
static java.lang.String PARAMETER_RANGE_NAME_TYPE
          Indicates if long range names should be used.
 
Fields inherited from class com.rapidminer.operator.preprocessing.PreprocessingOperator
attributeSelector, PARAMETER_CREATE_VIEW, PARAMETER_RETURN_PREPROCESSING_MODEL
 
Constructor Summary
MinMaxBinDiscretization(OperatorDescription description)
           
 
Method Summary
 PreprocessingModel createPreprocessingModel(ExampleSet exampleSet)
           
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 java.lang.Class<? extends PreprocessingModel> getPreprocessingModelClass()
           
 ResourceConsumptionEstimator getResourceConsumptionEstimator()
          Subclasses can override this method if they are able to estimate the consumed resources (CPU time and memory), based on their input.
 
Methods inherited from class com.rapidminer.operator.preprocessing.discretization.AbstractDiscretizationOperator
createDiscretizationFixes, getFilterValueTypes, modifyAttributeMetaData, registerDiscretizationOperator
 
Methods inherited from class com.rapidminer.operator.preprocessing.PreprocessingOperator
apply, checkSelectedSubsetMetaData, doWork, doWorkModel, getSelectedAttributes, isSupportingAttributeRoles, isSupportingView, modifyMetaData, shouldAutoConnect, writesIntoExistingData
 
Methods inherited from class com.rapidminer.operator.AbstractExampleSetProcessing
doWork, getExampleSetInputPort, getExampleSetOutputPort, getInputPort, getRequiredMetaData
 
Methods inherited from class com.rapidminer.operator.Operator
acceptsInput, addError, addError, addValue, addWarning, apply, apply, assumePreconditionsSatisfied, checkAll, checkAllExcludingMetaData, checkDeprecations, checkForStop, checkIO, checkProperties, clear, clearErrorList, cloneOperator, collectErrors, createExperimentTree, createExperimentTree, createFromXML, createFromXML, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, createProcessTree, disconnectPorts, execute, fireUpdate, freeMemory, getAddOnlyAdditionalOutput, getApplyCount, getCompatibilityLevel, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getDOMRepresentation, getEncoding, getErrorList, getExecutionUnit, getExperiment, getIncompatibleVersionChanges, getInput, getInput, getInput, getInputClasses, getInputDescription, getInputPorts, getIODescription, getLog, getLogger, getName, getNumberOfBreakpoints, getOperatorClassName, getOperatorDescription, getOutputClasses, getOutputPorts, getParameter, getParameterAsBoolean, getParameterAsChar, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsFile, getParameterAsInputStream, getParameterAsInt, getParameterAsMatrix, getParameterAsRepositoryLocation, getParameterAsString, getParameterHandler, getParameterList, getParameters, getParameterTupel, getParameterType, getParent, getPortOwner, getProcess, getRoot, getStartTime, getTransformer, getUserDescription, getValue, getValues, getXML, getXML, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isDebugMode, isDirty, isEnabled, isExpanded, isParallel, isParameterSet, isRunning, log, log, logError, logNote, logWarning, lookupOperator, makeDirty, makeDirtyOnUpdate, notifyRenaming, performAdditionalChecks, preAutoWire, processFinished, processStarts, producesOutput, propagateDirtyness, register, registerOperator, remove, removeAndKeepConnections, rename, resume, setBreakpoint, setCompatibilityLevel, setEnabled, setEnclosingProcess, setExpanded, setInput, setListParameter, setPairParameter, setParameter, setParameters, setUserDescription, shouldAutoConnect, shouldStopStandaloneExecution, toString, transformMetaData, unregisterOperator, updateExecutionOrder, walk, writeXML, writeXML
 
Methods inherited from class com.rapidminer.tools.AbstractObservable
addObserver, addObserverAsFirst, fireUpdate, removeObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARAMETER_NUMBER_OF_BINS

public static final java.lang.String PARAMETER_NUMBER_OF_BINS
Indicates the number of used bins.

See Also:
Constant Field Values

PARAMETER_MIN_VALUE

public static final java.lang.String PARAMETER_MIN_VALUE
See Also:
Constant Field Values

PARAMETER_MAX_VALUE

public static final java.lang.String PARAMETER_MAX_VALUE
See Also:
Constant Field Values

PARAMETER_RANGE_NAME_TYPE

public static final java.lang.String PARAMETER_RANGE_NAME_TYPE
Indicates if long range names should be used.

See Also:
Constant Field Values

PARAMETER_AUTOMATIC_NUMBER_OF_DIGITS

public static final java.lang.String PARAMETER_AUTOMATIC_NUMBER_OF_DIGITS
See Also:
Constant Field Values

PARAMETER_NUMBER_OF_DIGITS

public static final java.lang.String PARAMETER_NUMBER_OF_DIGITS
See Also:
Constant Field Values
Constructor Detail

MinMaxBinDiscretization

public MinMaxBinDiscretization(OperatorDescription description)
Method Detail

createPreprocessingModel

public PreprocessingModel createPreprocessingModel(ExampleSet exampleSet)
                                            throws OperatorException
Specified by:
createPreprocessingModel in class PreprocessingOperator
Throws:
OperatorException

getPreprocessingModelClass

public java.lang.Class<? extends PreprocessingModel> getPreprocessingModelClass()
Specified by:
getPreprocessingModelClass in class PreprocessingOperator

getParameterTypes

public java.util.List<ParameterType> getParameterTypes()
Description copied from class: Operator
Returns a list of ParameterTypes describing the parameters of this operator. The default implementation returns an empty list if no input objects can be retained and special parameters for those input objects which can be prevented from being consumed. ATTENTION! This will create new parameterTypes. For calling already existing parameter types use getParameters().getParameterTypes();

Specified by:
getParameterTypes in interface ParameterHandler
Overrides:
getParameterTypes in class PreprocessingOperator

getResourceConsumptionEstimator

public ResourceConsumptionEstimator getResourceConsumptionEstimator()
Description copied from class: Operator
Subclasses can override this method if they are able to estimate the consumed resources (CPU time and memory), based on their input. The default implementation returns null.

Specified by:
getResourceConsumptionEstimator in interface ResourceConsumer
Overrides:
getResourceConsumptionEstimator in class Operator


Copyright © 2001-2009 by Rapid-I