shrink
Prune regression ensemble
Description
returns a cmp = shrink(ens)CompactRegressionEnsemble version of
ens, a regularized regression ensemble model.
cmp retains only those learners with weights above the
specified threshold. shrink orders the members of
cmp from largest to smallest. You can make predictions using
cmp in the same way as when using ens
with the predict function.
specifies additional options using one or more name-value arguments. For example,
you can specify the regularization parameter values for lasso, a lower cutoff on
weights for weak learners, and the column index containing learner weights.cmp = shrink(ens,Name=Value)
Examples
Input Arguments
Name-Value Arguments
Extended Capabilities
Version History
Introduced in R2011a
See Also
regularize | cvshrink | predict | CompactRegressionEnsemble | RegressionEnsemble | RegressionBaggedEnsemble | fitrensemble