Compact regression ensemble class
Compact version of a regression ensemble (of class RegressionEnsemble
).
The compact version does not include the data for training the regression
ensemble. Therefore, you cannot perform some tasks with a compact
regression ensemble, such as cross validation. Use a compact regression
ensemble for making predictions (regressions) of new data.
constructs a compact
decision ensemble from a full decision ensemble.ens
=
compact(fullEns
)

A regression ensemble created by 

List of categorical predictors. 

A character vector describing how the ensemble combines learner predictions. 

Expanded predictor names, stored as a cell array of character vectors. If the model uses encoding for categorical variables, then 

Number of trained learners in the ensemble, a positive scalar. 

A cell array of names for the predictor variables, in the order
in which they appear in 

A character vector with the name of the response variable 

Function handle for transforming scores, or character vector
representing a builtin transformation function. Add or change a ens.ResponseTransform = @function 

The trained learners, a cell array of compact regression models. 

A numeric vector of weights the ensemble assigns to its learners. The ensemble computes predicted response by aggregating weighted predictions from its learners. 
loss  Regression error 
predict  Predict responses using ensemble of regression models 
predictorImportance  Estimates of predictor importance 
removeLearners  Remove members of compact regression ensemble 
Value. To learn how value classes affect copy operations, see Copying Objects in the MATLAB^{®} documentation.
For a compact ensemble of regression trees, the Trained
property
of ens
stores a cell vector of ens.NumTrained
CompactRegressionTree
model
objects. For a textual or graphical display of tree t
in
the cell vector, enter
view(ens.Trained{t})
compact
 fitrensemble
 predict
 RegressionEnsemble
 templateTree
 view