Main Content
oobPredict
Predict out-of-bag responses of bagged regression ensemble
Description
returns a numeric column vector of predicted responses for the out-of-bag data in
the bagged regression ensemble model Yfit
= oobPredict(ens
)ens
. Yfit
has size(ens.X,1)
elements. You can find the indices of
out-of-bag observations for the weak learner L
by entering the
command:
~ens.UseObsForLearner(:,L)
specifies additional options using one or more name-value arguments. For example,
you can specify the indices of the weak learners to use for calculating the
predicted responses.Yfit
= oobPredict(ens
,Name=Value
)
Examples
Input Arguments
More About
Extended Capabilities
Version History
Introduced in R2012b