oobPredict
Predict out-of-bag response of ensemble
Syntax
Yfit = oobPredict(ens)
Yfit = oobPredict(ens,Name,Value)
Description
returns
the predicted responses for the out-of-bag data in Yfit
= oobPredict(ens
)ens
.
predicts
responses with additional options specified by one or more Yfit
= oobPredict(ens
,Name,Value
)Name,Value
pair
arguments.
Input Arguments
|
A regression bagged ensemble, constructed with |
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
| Indices of weak learners in the ensemble ranging from Default: |
| Indication to perform inference in parallel, specified as Default: |
Output Arguments
|
A vector of predicted responses for out-of-bag data. You can find the indices of out-of-bag observations for weak
learner ~ens.UseObsForLearner(:,L) |