Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

oobPredict - Class: TreeBagger

Ensemble predictions for out-of-bag observations

Syntax

Y = oobPredict(B)
Y = oobPredict(B,'param1',val1,'param2',val2,...)

Description

Y = oobPredict(B) computes predicted responses using the trained bagger B for out-of-bag observations in the training data. The output has one prediction for each observation in the training data. The returned Y is a cell array of strings for classification and a numeric array for regression.

Y = oobPredict(B,'param1',val1,'param2',val2,...) specifies optional parameter name/value pairs:

'trees'Array of tree indices to use for computation of responses. Default is 'all'.
'treeweights'Array of NTrees weights for weighting votes from the specified trees.

See Also

CompactTreeBagger.predict, OOBIndices

  


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