com.rapidminer.operator.preprocessing
Class ExampleSetTranspose

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

public class ExampleSetTranspose
extends AbstractExampleSetProcessing

This operator transposes an example set, i.e. the columns with become the new rows and the old rows will become the columns. Hence, this operator works very similar to the well know transpose operation for matrices.

If an Id attribute is part of the given example set, the ids will become the names of the new attributes. The names of the old attributes will be transformed into the id values of a new special Id attribute. Since no other "special" examples or data rows exist, all other new attributes will be regular after the transformation. You can use the ChangeAttributeType operator in order to change one of these into a special type afterwards.

If all old attribute have the same value type, all new attributes will have this value type. Otherwise, the new value types will all be "nominal" if at least one nominal attribute was part of the given example set and "real" if the types contained mixed numbers.

This operator produces a copy of the data in the main memory and it therefore not suggested to use it on very large data sets.

Author:
Ingo Mierswa

Constructor Summary
ExampleSetTranspose(OperatorDescription description)
           
 
Method Summary
 ExampleSet apply(ExampleSet exampleSet)
          Delegate for the apply method.
 
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

ExampleSetTranspose

public ExampleSetTranspose(OperatorDescription description)
Method Detail

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