Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

CompactTreeBagger class -

Compact ensemble of decision trees grown by bootstrap aggregation

Description

CompactTreeBagger class is a lightweight class that contains the trees grown using TreeBagger. CompactTreeBagger does not preserve any information about how TreeBagger grew the decision trees. It does not contain the input data used for growing trees, nor does it contain training parameters such as minimal leaf size or number of variables sampled for each decision split at random. You can only use CompactTreeBagger for predicting the response of the trained ensemble given new data X, and other related functions.

CompactTreeBagger lets you save the trained ensemble to disk, or use it in any other way, while discarding training data and various parameters of the training configuration irrelevant for predicting response of the fully grown ensemble. This reduces storage and memory requirements, especially for ensembles trained on large datasets.

Construction

CompactTreeBaggerCreate CompactTreeBagger object

Methods

combineCombine two ensembles
errorError (misclassification probability or MSE)
marginClassification margin
mdsProxMultidimensional scaling of proximity matrix
meanMarginMean classification margin
outlierMeasureOutlier measure for data
predictPredict response
proximityProximity matrix for data
SetDefaultYfitSet default value for predict

Properties

ClassNamesNames of classes
DefaultYfitDefault value returned by predict
DeltaCritDecisionSplitSplit criterion contributions for each predictor
MethodMethod used by trees (classification or regression)
NTreesNumber of decision trees in ensemble
TreesDecision trees in ensemble
VarNamesVariable names

Copy Semantics

Value. To learn how this affects your use of the class, see Comparing Handle and Value Classes in the MATLAB Object-Oriented Programming documentation.

See Also

classregtree

Regression and Classification by Bagging Decision Trees

Classification Trees

Regression Trees

Grouped Data

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS