com.rapidminer.operator.features.weighting
Class ComponentWeights

java.lang.Object
  extended by com.rapidminer.tools.AbstractObservable<Operator>
      extended by com.rapidminer.operator.Operator
          extended by com.rapidminer.operator.features.weighting.AbstractWeighting
              extended by com.rapidminer.operator.features.weighting.ComponentWeights
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ResourceConsumer, CapabilityProvider, ParameterHandler, LoggingHandler, Observable<Operator>

public class ComponentWeights
extends AbstractWeighting

For models creating components like PCA, GHA and FastICA you can create the AttributeWeights from a component.

Author:
Daniel Hakenjos, Ingo Mierswa

Field Summary
static java.lang.String PARAMETER_COMPONENT_NUMBER
          The parameter name for "Create the weights of this component.
 
Fields inherited from class com.rapidminer.operator.features.weighting.AbstractWeighting
PARAMETER_NORMALIZE_WEIGHTS, PARAMETER_SORT_DIRECTION, PARAMETER_SORT_WEIGHTS, SORT_ASCENDING, SORT_DESCENDING
 
Fields inherited from interface com.rapidminer.operator.learner.CapabilityProvider
PROPERTY_RAPIDMINER_GENERAL_CAPABILITIES_WARN
 
Constructor Summary
ComponentWeights(OperatorDescription description)
           
 
Method Summary
protected  AttributeWeights calculateWeights(ExampleSet exampleSet)
           
 AttributeWeights doWork(Model model, ExampleSet exampleSet)
          Helper method for anonymous instantiations of this class.
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
protected  boolean isExampleSetMandatory()
           
 boolean supportsCapability(OperatorCapability capability)
          Checks for Learner capabilities.
 
Methods inherited from class com.rapidminer.operator.features.weighting.AbstractWeighting
doWork, doWork, getExampleSetInputPort, getWeightsOutputPort, onlyWarnForNonSufficientCapabilities
 
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, 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_COMPONENT_NUMBER

public static final java.lang.String PARAMETER_COMPONENT_NUMBER
The parameter name for "Create the weights of this component."

See Also:
Constant Field Values
Constructor Detail

ComponentWeights

public ComponentWeights(OperatorDescription description)
Method Detail

doWork

public AttributeWeights doWork(Model model,
                               ExampleSet exampleSet)
                        throws OperatorException
Helper method for anonymous instantiations of this class.

Throws:
OperatorException

calculateWeights

protected AttributeWeights calculateWeights(ExampleSet exampleSet)
                                     throws OperatorException
Specified by:
calculateWeights in class AbstractWeighting
Throws:
OperatorException

isExampleSetMandatory

protected boolean isExampleSetMandatory()
Overrides:
isExampleSetMandatory in class AbstractWeighting

supportsCapability

public boolean supportsCapability(OperatorCapability capability)
Description copied from interface: CapabilityProvider
Checks for Learner capabilities. Should return true if the given capability is supported.


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 AbstractWeighting


Copyright © 2001-2009 by Rapid-I