com.rapidminer.operator.learner.meta
Class AdaBoost

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.AdaBoost
All Implemented Interfaces:
ConfigurationListener, PreviewListener, Learner, ParameterHandler, LoggingHandler

public class AdaBoost
extends AbstractMetaLearner

This AdaBoost implementation can be used with all learners available in RapidMiner, not only the ones which originally are part of the Weka package.

Author:
Martin Scholz

Field Summary
protected  int currentIteration
           
static double MIN_ADVANTAGE
          Discard models with an advantage of less than the specified value.
static java.lang.String PARAMETER_ITERATIONS
          Name of the variable specifying the maximal number of iterations of the learner.
 
Constructor Summary
AdaBoost(OperatorDescription description)
          Constructor.
 
Method Summary
 java.util.List<ParameterType> getParameterTypes()
          Adds the parameters "number of iterations" and "model file".
 Model learn(ExampleSet exampleSet)
          Constructs a Model repeatedly running a weak learner, reweighting the training example set accordingly, and combining the hypothesis using the available weighted performance values.
protected  double prepareWeights(ExampleSet exampleSet)
          Creates a weight attribute if not yet done.
 boolean supportsCapability(LearnerCapability lc)
          Overrides the method of the super class.
 
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, 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_ITERATIONS

public static final java.lang.String PARAMETER_ITERATIONS
Name of the variable specifying the maximal number of iterations of the learner.

See Also:
Constant Field Values

MIN_ADVANTAGE

public static final double MIN_ADVANTAGE
Discard models with an advantage of less than the specified value.

See Also:
Constant Field Values

currentIteration

protected int currentIteration
Constructor Detail

AdaBoost

public AdaBoost(OperatorDescription description)
Constructor.

Method Detail

supportsCapability

public boolean supportsCapability(LearnerCapability lc)
Overrides the method of the super class. Returns true for polynominal class.

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

learn

public Model learn(ExampleSet exampleSet)
            throws OperatorException
Constructs a Model repeatedly running a weak learner, reweighting the training example set accordingly, and combining the hypothesis using the available weighted performance values.

Throws:
OperatorException

prepareWeights

protected double prepareWeights(ExampleSet exampleSet)
Creates a weight attribute if not yet done. It either backs up the old weights for restoring them later, or it fills the newly created attribute with the initial value of 1.

Parameters:
exampleSet - the example set to be prepared
Returns:
the total weight

getParameterTypes

public java.util.List<ParameterType> getParameterTypes()
Adds the parameters "number of iterations" and "model file".

Specified by:
getParameterTypes in interface ParameterHandler
Overrides:
getParameterTypes in class Operator


Copyright © 2001-2009 by Rapid-I