com.rapidminer.operator.preprocessing.transformation
Class Example2AttributePivoting

java.lang.Object
  extended by com.rapidminer.operator.Operator
      extended by com.rapidminer.operator.preprocessing.transformation.ExampleSetTransformationOperator
          extended by com.rapidminer.operator.preprocessing.transformation.Example2AttributePivoting
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ParameterHandler, LoggingHandler

public class Example2AttributePivoting
extends ExampleSetTransformationOperator

Transforms an example set by grouping multiple examples of single groups into single examples. The parameter group_attribute specifies an attribute which identifies examples belonging to the groups. The parameter index_attribute specifies an attribute whose values are used to identify the examples inside the groups. The values of this attributes are used to name the group attributes which are created during the pivoting. Typically the values of such an attribute capture subgroups or dates. If the source example set contains example weights, these weights may be aggregated in each group to maintain the weightings among groups.

Author:
Tobias Malbrecht

Field Summary
static java.lang.String PARAMETER_CONSIDER_WEIGHTS
           
static java.lang.String PARAMETER_GROUP_ATTRIBUTE
           
static java.lang.String PARAMETER_INDEX_ATTRIBUTE
           
static java.lang.String PARAMETER_WEIGHT_AGGREGATION
           
 
Constructor Summary
Example2AttributePivoting(OperatorDescription description)
           
 
Method Summary
 IOObject[] apply()
          Implement this method in subclasses.
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 
Methods inherited from class com.rapidminer.operator.preprocessing.transformation.ExampleSetTransformationOperator
getInputClasses, getInputDescription, 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, 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
 

Field Detail

PARAMETER_GROUP_ATTRIBUTE

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

PARAMETER_INDEX_ATTRIBUTE

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

PARAMETER_CONSIDER_WEIGHTS

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

PARAMETER_WEIGHT_AGGREGATION

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

Example2AttributePivoting

public Example2AttributePivoting(OperatorDescription description)
Method Detail

apply

public IOObject[] apply()
                 throws OperatorException
Description copied from class: Operator
Implement this method in subclasses.

Specified by:
apply in class Operator
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 Operator


Copyright © 2001-2009 by Rapid-I