oobLoss
Outofbag regression error
Syntax
L = oobLoss(ens)
L = oobLoss(ens,Name,Value)
Description
returns
the mean squared error for L
= oobLoss(ens
)ens
computed for outofbag
data.
computes
error with additional options specified by one or more L
= oobLoss(ens
,Name,Value
)Name,Value
pair
arguments. You can specify several namevalue pair arguments in any
order as Name1,Value1,…,NameN,ValueN
.
Input Arguments

A regression bagged ensemble, constructed with 
NameValue Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Namevalue 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: 

Function handle for loss function, or FUN(Y,Yfit,W) where Default: 

Character vector or string scalar representing the meaning of the output
Default: 
 Indication to perform inference in parallel, specified as Default: 
Output Arguments

Mean squared error of the outofbag observations, a scalar. 