|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.AbstractObservable<Operator>
com.rapidminer.operator.Operator
com.rapidminer.operator.learner.AbstractLearner
com.rapidminer.operator.learner.tree.AbstractTreeLearner
public abstract class AbstractTreeLearner
This is the abstract super class for all decision tree learners. The actual type of the tree is determined by the criterion, e.g. using gain_ratio or Gini for CART / C4.5 and chi_squared for CHAID.
| Field Summary | |
|---|---|
static java.lang.Class[] |
CRITERIA_CLASSES
|
static java.lang.String[] |
CRITERIA_NAMES
|
static int |
CRITERION_ACCURACY
|
static int |
CRITERION_GAIN_RATIO
|
static int |
CRITERION_GINI_INDEX
|
static int |
CRITERION_INFO_GAIN
|
static java.lang.String |
PARAMETER_CRITERION
The parameter name for "Specifies the used criterion for selecting attributes and numerical splits. |
static java.lang.String |
PARAMETER_MINIMAL_GAIN
The parameter name for the minimal gain. |
static java.lang.String |
PARAMETER_MINIMAL_LEAF_SIZE
The parameter name for "The minimal size of all leaves. |
static java.lang.String |
PARAMETER_MINIMAL_SIZE_FOR_SPLIT
The parameter name for "The minimal size of all leaves. |
| Fields inherited from interface com.rapidminer.operator.learner.CapabilityProvider |
|---|
PROPERTY_RAPIDMINER_GENERAL_CAPABILITIES_WARN |
| Constructor Summary | |
|---|---|
AbstractTreeLearner(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
protected Criterion |
createCriterion(double minimalGain)
|
java.lang.Class<? extends PredictionModel> |
getModelClass()
This method might be overridden from subclasses in order to specify exactly which model class they use. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
abstract Pruner |
getPruner()
Returns the pruner for this tree learner. |
SplitPreprocessing |
getSplitPreprocessing()
The split preprocessing is applied before each new split The default implementation does nothing and simply returns the given example set. |
abstract java.util.List<Terminator> |
getTerminationCriteria(ExampleSet exampleSet)
Returns all termination criteria. |
protected abstract TreeBuilder |
getTreeBuilder(ExampleSet exampleSet)
|
Model |
learn(ExampleSet eSet)
Trains a model. |
| Methods inherited from class com.rapidminer.operator.learner.AbstractLearner |
|---|
canCalculateWeights, canEstimatePerformance, doWork, doWork, getEstimatedPerformance, getExampleSetInputPort, getOptimizationPerformance, getWeightCalculationError, getWeights, getWeights, onlyWarnForNonSufficientCapabilities, shouldAutoConnect, shouldCalculateWeights, shouldDeliverOptimizationPerformance, shouldEstimatePerformance |
| 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 |
| Methods inherited from interface com.rapidminer.operator.learner.Learner |
|---|
getName |
| Methods inherited from interface com.rapidminer.operator.learner.CapabilityProvider |
|---|
supportsCapability |
| Field Detail |
|---|
public static final java.lang.String PARAMETER_CRITERION
public static final java.lang.String PARAMETER_MINIMAL_SIZE_FOR_SPLIT
public static final java.lang.String PARAMETER_MINIMAL_LEAF_SIZE
public static final java.lang.String PARAMETER_MINIMAL_GAIN
public static final java.lang.String[] CRITERIA_NAMES
public static final java.lang.Class[] CRITERIA_CLASSES
public static final int CRITERION_GAIN_RATIO
public static final int CRITERION_INFO_GAIN
public static final int CRITERION_GINI_INDEX
public static final int CRITERION_ACCURACY
| Constructor Detail |
|---|
public AbstractTreeLearner(OperatorDescription description)
| Method Detail |
|---|
public java.lang.Class<? extends PredictionModel> getModelClass()
AbstractLearner
getModelClass in class AbstractLearner
public abstract java.util.List<Terminator> getTerminationCriteria(ExampleSet exampleSet)
throws OperatorException
OperatorException
public abstract Pruner getPruner()
throws OperatorException
OperatorExceptionpublic SplitPreprocessing getSplitPreprocessing()
public Model learn(ExampleSet eSet)
throws OperatorException
Learner
OperatorException
protected abstract TreeBuilder getTreeBuilder(ExampleSet exampleSet)
throws OperatorException
OperatorException
protected Criterion createCriterion(double minimalGain)
throws OperatorException
OperatorExceptionpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class Operator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||