CompactClassificationXGBoost
Description
Pretrained XGBoost model for binary or multiclass classification. Use the compact classification XGBoost model for making predictions (classifications) of new data.
Creation
Create a CompactClassificationXGBoost object by importing a pretrained
binary or multiclass classification XGBoost model using importModelFromXGBoost.
Properties
Object Functions
compareHoldout | Compare accuracies of two classification models using new data |
edge | Classification edge for XGBoost classification model |
gather | Gather properties of Statistics and Machine Learning Toolbox object from GPU |
lime | Local interpretable model-agnostic explanations (LIME) |
loss | Classification error for XGBoost model |
margin | Classification margins for XGBoost classification model |
partialDependence | Compute partial dependence |
plotPartialDependence | Create partial dependence plot (PDP) and individual conditional expectation (ICE) plots |
predict | Predict labels using classification XGBoost model |
predictorImportance | Estimates of predictor importance for XGBoost model |
shapley | Shapley values |
Examples
Tips
For CompactClassificationXGBoost, the
Trained property of Mdl stores a
Mdl.ImportedModelParamaters.NumClasses-by-Mdl.ImportedModelParameters.NumBoostingRounds
cell array of compact regression tree models. For a textual or graphical display of tree
x, y in the cell array, enter
view(Mdl.Trained{x,y})
Extended Capabilities
Version History
Introduced in R2026a