com.rapidminer.operator.learner.tree
Class RandomTreeLearner

java.lang.Object
  extended by com.rapidminer.operator.Operator
      extended by com.rapidminer.operator.learner.AbstractLearner
          extended by com.rapidminer.operator.learner.tree.AbstractTreeLearner
              extended by com.rapidminer.operator.learner.tree.DecisionTreeLearner
                  extended by com.rapidminer.operator.learner.tree.RandomTreeLearner
All Implemented Interfaces:
ConfigurationListener, PreviewListener, Learner, ParameterHandler, LoggingHandler

public class RandomTreeLearner
extends DecisionTreeLearner

This operator learns decision trees from both nominal and numerical data. Decision trees are powerful classification methods which often can also easily be understood. The random tree learner works similar to Quinlan's C4.5 or CART but it selects a random subset of attributes before it is applied. The size of the subset is defined by the parameter subset_ratio.

Author:
Ingo Mierswa

Field Summary
static java.lang.String PARAMETER_LOCAL_RANDOM_SEED
          The parameter name for "Use the given random seed instead of global random numbers (-1: use global)"
static java.lang.String PARAMETER_SUBSET_RATIO
          The parameter name for "Ratio of randomly chosen attributes to test"
 
Fields inherited from class com.rapidminer.operator.learner.tree.DecisionTreeLearner
PARAMETER_CONFIDENCE, PARAMETER_MAXIMAL_DEPTH, PARAMETER_NO_PRE_PRUNING, PARAMETER_NO_PRUNING, PARAMETER_NUMBER_OF_PREPRUNING_ALTERNATIVES
 
Fields inherited from class com.rapidminer.operator.learner.tree.AbstractTreeLearner
CRITERIA_CLASSES, CRITERIA_NAMES, CRITERION_ACCURACY, CRITERION_GAIN_RATIO, CRITERION_GINI_INDEX, CRITERION_INFO_GAIN, PARAMETER_CRITERION, PARAMETER_MINIMAL_GAIN, PARAMETER_MINIMAL_LEAF_SIZE, PARAMETER_MINIMAL_SIZE_FOR_SPLIT
 
Fields inherited from class com.rapidminer.operator.learner.AbstractLearner
PROPERTY_RAPIDMINER_GENERAL_CAPABILITIES_WARN
 
Constructor Summary
RandomTreeLearner(OperatorDescription description)
           
 
Method Summary
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 SplitPreprocessing getSplitPreprocessing()
          Returns a random feature subset sampling.
 
Methods inherited from class com.rapidminer.operator.learner.tree.DecisionTreeLearner
getPruner, getTerminationCriteria, getTreeBuilder, supportsCapability
 
Methods inherited from class com.rapidminer.operator.learner.tree.AbstractTreeLearner
createCriterion, learn
 
Methods inherited from class com.rapidminer.operator.learner.AbstractLearner
apply, getEstimatedPerformance, getInputClasses, getInputDescription, getOptimizationPerformance, getOutputClasses, getWeights, onlyWarnForNonSufficientCapabilities, shouldCalculateWeights, shouldDeliverOptimizationPerformance, shouldEstimatePerformance
 
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
 
Methods inherited from interface com.rapidminer.operator.learner.Learner
getName
 

Field Detail

PARAMETER_SUBSET_RATIO

public static final java.lang.String PARAMETER_SUBSET_RATIO
The parameter name for "Ratio of randomly chosen attributes to test"

See Also:
Constant Field Values

PARAMETER_LOCAL_RANDOM_SEED

public static final java.lang.String PARAMETER_LOCAL_RANDOM_SEED
The parameter name for "Use the given random seed instead of global random numbers (-1: use global)"

See Also:
Constant Field Values
Constructor Detail

RandomTreeLearner

public RandomTreeLearner(OperatorDescription description)
Method Detail

getSplitPreprocessing

public SplitPreprocessing getSplitPreprocessing()
Returns a random feature subset sampling.

Overrides:
getSplitPreprocessing in class AbstractTreeLearner

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 DecisionTreeLearner


Copyright © 2001-2009 by Rapid-I