com.rapidminer.operator.learner.meta
Class Stacking

java.lang.Object
  extended by com.rapidminer.operator.Operator
      extended by com.rapidminer.operator.OperatorChain
          extended by com.rapidminer.operator.learner.meta.AbstractMetaLearner
              extended by com.rapidminer.operator.learner.meta.AbstractStacking
                  extended by com.rapidminer.operator.learner.meta.Stacking
All Implemented Interfaces:
ConfigurationListener, PreviewListener, Learner, ParameterHandler, LoggingHandler

public class Stacking
extends AbstractStacking

This class uses n+1 inner learners and generates n different models by using the last n learners. The predictions of these n models are taken to create n new features for the example set, which is finally used to serve as an input of the first inner learner.

Author:
Ingo Mierswa, Helge Homburg

Field Summary
static java.lang.String PARAMETER_KEEP_ALL_ATTRIBUTES
           
 
Constructor Summary
Stacking(OperatorDescription description)
           
 
Method Summary
 int getFirstBaseModelLearnerIndex()
          Returns the first inner operator which should be learned for base model learning.
 int getLastBaseModelLearnerIndex()
          Returns the last inner operator which should be learned for base model learning.
 int getMinNumberOfInnerOperators()
          Returns the minimum number of inner operators.
 java.lang.String getModelName()
          Returns the model name.
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 Operator getStackingLearner()
          Returns the learner which should be used for stacking.
 boolean keepOldAttributes()
          Indicates if the old attributes should be kept for learning the stacking model.
 
Methods inherited from class com.rapidminer.operator.learner.meta.AbstractStacking
learn, supportsCapability
 
Methods inherited from class com.rapidminer.operator.learner.meta.AbstractMetaLearner
apply, applyInnerLearner, getEstimatedPerformance, getInnerOperatorCondition, getInputClasses, getInputDescription, getMaxNumberOfInnerOperators, getOutputClasses, getWeights, shouldCalculateWeights, shouldEstimatePerformance
 
Methods inherited from class com.rapidminer.operator.OperatorChain
addAddListener, addOperator, addOperator, checkDeprecations, checkIO, checkNumberOfInnerOperators, checkProperties, clearErrorList, cloneOperator, createExperimentTree, createProcessTree, getAllInnerOperators, getIndexOfOperator, getInnerOperatorForName, getInnerOperatorsXML, getNumberOfAllOperators, getNumberOfOperators, getOperator, getOperatorFromAll, getOperators, performAdditionalChecks, processFinished, processStarts, registerOperator, removeAddListener, removeOperator, shouldAddNonConsumedInput, shouldReturnInnerOutput, unregisterOperator
 
Methods inherited from class com.rapidminer.operator.Operator
addError, addValue, addWarning, apply, checkForStop, createExperimentTree, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, getAddOnlyAdditionalOutput, getApplyCount, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getEncoding, getErrorList, getExperiment, 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, register, remove, rename, resume, setApplyCount, setBreakpoint, setEnabled, setExpanded, setInput, setListParameter, setOperatorParameters, setParameter, setParameters, setParent, setUserDescription, toString, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rapidminer.operator.learner.Learner
getName
 

Field Detail

PARAMETER_KEEP_ALL_ATTRIBUTES

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

Stacking

public Stacking(OperatorDescription description)
Method Detail

getModelName

public java.lang.String getModelName()
Description copied from class: AbstractStacking
Returns the model name.

Specified by:
getModelName in class AbstractStacking

getFirstBaseModelLearnerIndex

public int getFirstBaseModelLearnerIndex()
Description copied from class: AbstractStacking
Returns the first inner operator which should be learned for base model learning.

Specified by:
getFirstBaseModelLearnerIndex in class AbstractStacking

getLastBaseModelLearnerIndex

public int getLastBaseModelLearnerIndex()
Description copied from class: AbstractStacking
Returns the last inner operator which should be learned for base model learning.

Specified by:
getLastBaseModelLearnerIndex in class AbstractStacking

getStackingLearner

public Operator getStackingLearner()
Description copied from class: AbstractStacking
Returns the learner which should be used for stacking.

Specified by:
getStackingLearner in class AbstractStacking

keepOldAttributes

public boolean keepOldAttributes()
Description copied from class: AbstractStacking
Indicates if the old attributes should be kept for learning the stacking model.

Specified by:
keepOldAttributes in class AbstractStacking

getMinNumberOfInnerOperators

public int getMinNumberOfInnerOperators()
Description copied from class: OperatorChain
Returns the minimum number of inner operators.

Overrides:
getMinNumberOfInnerOperators in class AbstractMetaLearner

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