FUNCTION REFERENCE

ClassificationEnsemble

Boosted or bagged classification ensemble returned by fitcensemble.

Boosted or bagged classification ensemble returned by fitcensemble.

Syntax

mdl = fitcensemble(X, Y)

Stores weak learners, learner weights and training metadata. Evaluate with predict, resubLoss, loss, crossval and predictorImportance.

Example

mdl = fitcensemble([0; 1; 2; 3], [1; 1; 2; 2], 'Method', 'AdaBoostM1', 'NumLearningCycles', 5); class(mdl)   % 'ClassificationEnsemble'

Differences from MATLAB: Supports AdaBoostM1, LogitBoost, GentleBoost and Bag methods on numeric predictors.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.