com.rapidminer.operator.learner.meta
Class AbstractStacking

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
All Implemented Interfaces:
ConfigurationListener, PreviewListener, Learner, ParameterHandler, LoggingHandler
Direct Known Subclasses:
Stacking, Vote

public abstract class AbstractStacking
extends AbstractMetaLearner

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

Constructor Summary
AbstractStacking(OperatorDescription description)
           
 
Method Summary
abstract  int getFirstBaseModelLearnerIndex()
          Returns the first inner operator which should be learned for base model learning.
abstract  int getLastBaseModelLearnerIndex()
          Returns the last inner operator which should be learned for base model learning.
abstract  java.lang.String getModelName()
          Returns the model name.
abstract  Operator getStackingLearner()
          Returns the learner which should be used for stacking.
abstract  boolean keepOldAttributes()
          Indicates if the old attributes should be kept for learning the stacking model.
 Model learn(ExampleSet exampleSet)
          Trains a model.
 boolean supportsCapability(LearnerCapability capability)
          For all meta learners, it checks for the underlying operator to see which capabilities are supported by them.
 
Methods inherited from class com.rapidminer.operator.learner.meta.AbstractMetaLearner
apply, applyInnerLearner, getEstimatedPerformance, getInnerOperatorCondition, getInputClasses, getInputDescription, getMaxNumberOfInnerOperators, getMinNumberOfInnerOperators, 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, getParameterTypes, 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
 

Constructor Detail

AbstractStacking

public AbstractStacking(OperatorDescription description)
Method Detail

getModelName

public abstract java.lang.String getModelName()
Returns the model name.


getStackingLearner

public abstract Operator getStackingLearner()
                                     throws OperatorException
Returns the learner which should be used for stacking.

Throws:
OperatorException

getFirstBaseModelLearnerIndex

public abstract int getFirstBaseModelLearnerIndex()
Returns the first inner operator which should be learned for base model learning.


getLastBaseModelLearnerIndex

public abstract int getLastBaseModelLearnerIndex()
Returns the last inner operator which should be learned for base model learning.


keepOldAttributes

public abstract boolean keepOldAttributes()
Indicates if the old attributes should be kept for learning the stacking model.


learn

public Model learn(ExampleSet exampleSet)
            throws OperatorException
Description copied from interface: Learner
Trains a model. This method should be called by apply() and is implemented by subclasses.

Throws:
OperatorException

supportsCapability

public boolean supportsCapability(LearnerCapability capability)
Description copied from class: AbstractMetaLearner
For all meta learners, it checks for the underlying operator to see which capabilities are supported by them.

Specified by:
supportsCapability in interface Learner
Overrides:
supportsCapability in class AbstractMetaLearner


Copyright © 2001-2009 by Rapid-I