com.rapidminer.operator.performance
Class Data2Performance

java.lang.Object
  extended by com.rapidminer.tools.AbstractObservable<Operator>
      extended by com.rapidminer.operator.Operator
          extended by com.rapidminer.operator.performance.AbstractExampleSetEvaluator
              extended by com.rapidminer.operator.performance.Data2Performance
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ResourceConsumer, ParameterHandler, LoggingHandler, Observable<Operator>

public class Data2Performance
extends AbstractExampleSetEvaluator

This operator can be used to derive a specific value of a given example set and provide it as a performance value which can be used for optimization purposes.

Author:
Ingo Mierswa

Field Summary
static int MACRO_TYPE_ATTRIBUTES
           
static int MACRO_TYPE_DATA
           
static int MACRO_TYPE_EXAMPLES
           
static int MACRO_TYPE_STATISTICS
           
static java.lang.String[] MACRO_TYPES
           
static int OPTIMIZATION_DIRECTION_MAXIMIZE
           
static int OPTIMIZATION_DIRECTION_MINIMIZE
           
static java.lang.String[] OPTIMIZATION_DIRECTIONS
           
static java.lang.String PARAMETER_ATTRIBUTE_NAME
           
static java.lang.String PARAMETER_ATTRIBUTE_VALUE
           
static java.lang.String PARAMETER_EXAMPLE_INDEX
           
static java.lang.String PARAMETER_OPTIMIZATION_DIRECTION
           
static java.lang.String PARAMETER_PERFORMANCE_TYPE
           
static java.lang.String PARAMETER_STATISTICS
           
static int STATISTICS_TYPE_AVERAGE
           
static int STATISTICS_TYPE_COUNT
           
static int STATISTICS_TYPE_MAX
           
static int STATISTICS_TYPE_MIN
           
static java.lang.String[] STATISTICS_TYPES
           
 
Constructor Summary
Data2Performance(OperatorDescription description)
           
 
Method Summary
 PerformanceVector evaluate(ExampleSet exampleSet)
          Implements the evaluation.
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 
Methods inherited from class com.rapidminer.operator.performance.AbstractExampleSetEvaluator
doWork, shouldAutoConnect
 
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, getResourceConsumptionEstimator, 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_PERFORMANCE_TYPE

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

PARAMETER_ATTRIBUTE_VALUE

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

PARAMETER_STATISTICS

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

PARAMETER_ATTRIBUTE_NAME

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

PARAMETER_EXAMPLE_INDEX

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

PARAMETER_OPTIMIZATION_DIRECTION

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

OPTIMIZATION_DIRECTIONS

public static final java.lang.String[] OPTIMIZATION_DIRECTIONS

OPTIMIZATION_DIRECTION_MINIMIZE

public static final int OPTIMIZATION_DIRECTION_MINIMIZE
See Also:
Constant Field Values

OPTIMIZATION_DIRECTION_MAXIMIZE

public static final int OPTIMIZATION_DIRECTION_MAXIMIZE
See Also:
Constant Field Values

MACRO_TYPES

public static final java.lang.String[] MACRO_TYPES

MACRO_TYPE_EXAMPLES

public static final int MACRO_TYPE_EXAMPLES
See Also:
Constant Field Values

MACRO_TYPE_ATTRIBUTES

public static final int MACRO_TYPE_ATTRIBUTES
See Also:
Constant Field Values

MACRO_TYPE_DATA

public static final int MACRO_TYPE_DATA
See Also:
Constant Field Values

MACRO_TYPE_STATISTICS

public static final int MACRO_TYPE_STATISTICS
See Also:
Constant Field Values

STATISTICS_TYPES

public static final java.lang.String[] STATISTICS_TYPES

STATISTICS_TYPE_AVERAGE

public static final int STATISTICS_TYPE_AVERAGE
See Also:
Constant Field Values

STATISTICS_TYPE_MIN

public static final int STATISTICS_TYPE_MIN
See Also:
Constant Field Values

STATISTICS_TYPE_MAX

public static final int STATISTICS_TYPE_MAX
See Also:
Constant Field Values

STATISTICS_TYPE_COUNT

public static final int STATISTICS_TYPE_COUNT
See Also:
Constant Field Values
Constructor Detail

Data2Performance

public Data2Performance(OperatorDescription description)
Method Detail

evaluate

public PerformanceVector evaluate(ExampleSet exampleSet)
                           throws OperatorException
Description copied from class: AbstractExampleSetEvaluator
Implements the evaluation. Called by Operator.apply().

Specified by:
evaluate in class AbstractExampleSetEvaluator
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. 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 Operator


Copyright © 2001-2009 by Rapid-I