CompactClassificationEnsemble
R2026bCompact classification ensemble
Description
CompactClassificationEnsemble is a compact version of a
classification ensemble. The compact version does not include the data used to train the
classification ensemble. Therefore, you cannot perform some tasks, such as
cross-validation, using the compact classification ensemble. Use a compact
classification ensemble to make predictions (classifications) for new
data.
Creation
Create a CompactClassificationEnsemble object from a full ClassificationEnsemble or ClassificationBaggedEnsemble model object by using the compact
object function.
Properties
Object Functions
compareHoldout | Compare accuracies of two classification models using new data |
edge | Classification edge for classification ensemble model |
gather | Gather properties of Statistics and Machine Learning Toolbox object from GPU |
lime | Local interpretable model-agnostic explanations (LIME) |
loss | Classification loss for classification ensemble model |
margin | Classification margins for classification ensemble model |
partialDependence | Compute partial dependence |
plotPartialDependence | Create partial dependence plot (PDP) and individual conditional expectation (ICE) plots |
predict | Predict labels using classification ensemble model |
predictorImportance | Estimates of predictor importance for classification ensemble of decision trees |
removeLearners | Remove members of compact classification ensemble |
shapley | Shapley values |
Examples
Tips
For an ensemble of classification trees
Mdl, theTrainedproperty stores anMdl.NumTrained-by-1 cell vector of compact classification models. For a textual or graphical display of treetin the cell vector, enter:view(Mdl.Trained{for ensembles aggregated using LogitBoost or GentleBoostt}.CompactRegressionLearner)view(Mdl.Trained{for all other aggregation methodst})
Extended Capabilities
Version History
Introduced in R2011aSee Also
fitcensemble | ClassificationEnsemble | ClassificationBaggedEnsemble | predict | compact | fitctree | view | compareHoldout
