shrink
Prune ensemble
Syntax
cmp = shrink(ens)
cmp = shrink(ens,Name,Value)
Description
returns a compact shrunken version of cmp
= shrink(ens
)ens
, a regularized ensemble.
cmp
retains only learners with weights above a threshold.
returns an ensemble with additional options specified by one or more
cmp
= shrink(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.
|
Vector of nonnegative regularization parameter values for lasso.
If Default: |
|
Lower cutoff on weights for weak learners, a numeric nonnegative
scalar. Default: |
|
Column index of Default: |
Output Arguments
|
A regression ensemble of class
|