com.rapidminer.operator.preprocessing.discretization
Class UserBasedDiscretization
java.lang.Object
com.rapidminer.operator.Operator
com.rapidminer.operator.preprocessing.PreprocessingOperator
com.rapidminer.operator.preprocessing.discretization.UserBasedDiscretization
- All Implemented Interfaces:
- ConfigurationListener, PreviewListener, ParameterHandler, LoggingHandler
public class UserBasedDiscretization
- extends PreprocessingOperator
This operator discretizes a numerical attribute to either a nominal or an ordinal attribute. The numerical values are
mapped to the classes according to the thresholds specified by the user. The user can define the classes by
specifying the upper limits of each class. The lower limit of the next class is automatically specified as the upper
limit of the previous one. A parameter defines to which adjacent class values that are equal to the given limits
should be mapped. If a '?' is given as class value the according numerical values are mapped to unknown
values in the resulting attribute.
Please note, that the last value always has to be equal to "Infinity". Otherwise values greater than the highest
specified value could not be assigned.
- Author:
- Sebastian Land
| 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 |
PARAMETER_ATTRIBUTE_TYPE
public static final java.lang.String PARAMETER_ATTRIBUTE_TYPE
- The parameter name for "Attribute type of the discretized attribute."
- See Also:
- Constant Field Values
PARAMETER_UPPER_LIMIT
public static final java.lang.String PARAMETER_UPPER_LIMIT
- The parameter name for the upper limit.
- See Also:
- Constant Field Values
PARAMETER_RANGE_NAMES
public static final java.lang.String PARAMETER_RANGE_NAMES
- The parameter name for "Defines the classes and the upper limits of each class."
- See Also:
- Constant Field Values
attributeTypeStrings
public static final java.lang.String[] attributeTypeStrings
ATTRIBUTE_TYPE_NOMINAL
public static final int ATTRIBUTE_TYPE_NOMINAL
- See Also:
- Constant Field Values
ATTRIBUTE_TYPE_ORDINAL
public static final int ATTRIBUTE_TYPE_ORDINAL
- See Also:
- Constant Field Values
UserBasedDiscretization
public UserBasedDiscretization(OperatorDescription description)
createPreprocessingModel
public Model createPreprocessingModel(ExampleSet exampleSet)
throws OperatorException
- Specified by:
createPreprocessingModel in class PreprocessingOperator
- Throws:
OperatorException
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.
- Specified by:
getParameterTypes in interface ParameterHandler- Overrides:
getParameterTypes in class PreprocessingOperator
Copyright © 2001-2009 by Rapid-I