| Contents | Index |
Ensemble predictions for out-of-bag observations
Y = oobPredict(B)
Y = oobPredict(B,'param1',val1,'param2',val2,...)
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. |
CompactTreeBagger.predict | OOBIndices
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |