CompactRegressionEnsemble
Package: classreg.learning.regr
Compact regression ensemble class
Description
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.
Construction
constructs a compact decision ensemble from a full decision ensemble.ens
=
compact(fullEns
)
Input Arguments
|
A regression ensemble created by |
Properties
|
Categorical predictor
indices, specified as a vector of positive integers. |
|
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 built-in 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. |
Object Functions
gather | Gather properties of Statistics and Machine Learning Toolbox object from GPU |
lime | Local interpretable model-agnostic explanations (LIME) |
loss | Regression error |
partialDependence | Compute partial dependence |
plotPartialDependence | Create partial dependence plot (PDP) and individual conditional expectation (ICE) plots |
predict | Predict responses using ensemble of regression models |
predictorImportance | Estimates of predictor importance for regression ensemble |
removeLearners | Remove members of compact regression ensemble |
shapley | Shapley values |
Copy Semantics
Value. To learn how value classes affect copy operations, see Copying Objects.
Examples
Tips
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})
Extended Capabilities
Version History
Introduced in R2011a
See Also
fitrensemble
| RegressionEnsemble
| predict
| compact
| templateTree
| view