resubLoss
Regression error by resubstitution
Syntax
L = resubLoss(ens)
L = resubLoss(ens,Name,Value)
Description
returns the resubstitution loss, meaning the mean squared error computed for the data
that L
= resubLoss(ens
)fitrensemble
used to create
ens
.
calculates loss with additional options specified by one or more
L
= resubLoss(ens
,Name,Value
)Name,Value
pair arguments. You can specify several name-value
pair arguments in any order as Name1,Value1,…,NameN,ValueN
.
Input Arguments
|
A regression ensemble created 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: |
|
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
|
Loss, by default the mean squared error. |