com.rapidminer.operator.performance
Class AttributeCounter

java.lang.Object
  extended by com.rapidminer.operator.Operator
      extended by com.rapidminer.operator.performance.AbstractExampleSetEvaluator
          extended by com.rapidminer.operator.performance.AttributeCounter
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ParameterHandler, LoggingHandler

public class AttributeCounter
extends AbstractExampleSetEvaluator

Returns a performance vector just counting the number of attributes currently used for the given example set.

Author:
Ingo Mierswa

Field Summary
static java.lang.String PARAMETER_OPTIMIZATION_DIRECTION
          The parameter name for "Indicates if the fitness should for maximal or minimal number of features.
 
Constructor Summary
AttributeCounter(OperatorDescription description)
           
 
Method Summary
 PerformanceVector evaluate(ExampleSet exampleSet)
          Implements the evaluation.
 InputDescription getInputDescription(java.lang.Class cls)
          Shows a parameter keep_example_set with default value "false".
 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
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, 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_OPTIMIZATION_DIRECTION

public static final java.lang.String PARAMETER_OPTIMIZATION_DIRECTION
The parameter name for "Indicates if the fitness should for maximal or minimal number of features."

See Also:
Constant Field Values
Constructor Detail

AttributeCounter

public AttributeCounter(OperatorDescription description)
Method Detail

evaluate

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

Specified by:
evaluate in class AbstractExampleSetEvaluator
Throws:
OperatorException

getInputDescription

public InputDescription getInputDescription(java.lang.Class cls)
Shows a parameter keep_example_set with default value "false".

Overrides:
getInputDescription in class Operator

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