Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

分类集成

用于进行多类学习的提升、随机森林、装袋、随机子空间和 ECOC 集成

分类集成是由多个分类模型的加权组合构成的预测模型。一般来讲,将多个分类模型相结合可以提高预测性能。

要以交互方式研究分类集成,可以使用分类学习器。为了获得更大的灵活性,可以在命令行界面中使用 fitcensemble 来提升或装袋分类树,或者生成随机森林 [12]。有关支持的所有集成的详细信息,请参阅Ensemble Algorithms。要将多类问题简化为二分类问题的集成,可以训练纠错输出编码 (ECOC) 模型。有关详细信息,请参阅 fitcecoc

要使用 LSBoost 提升回归树,或者要生成回归树的随机森林 [12],请参阅回归集成

App

分类学习器使用有监督的机器学习训练模型以对数据进行分类

模块

ClassificationEnsemble PredictClassify observations using ensemble of decision trees

函数

全部展开

templateDiscriminantDiscriminant analysis classifier template
templateECOCError-correcting output codes learner template
templateEnsembleEnsemble learning template
templateKNNk-nearest neighbor classifier template
templateLinearLinear classification learner template
templateNaiveBayesNaive Bayes classifier template
templateSVMSupport vector machine template
templateTreeCreate decision tree template

创建分类集成

fitcensembleFit ensemble of learners for classification
compactCompact classification ensemble

修改分类集成

resumeResume training ensemble
removeLearnersRemove members of compact classification ensemble

解释分类集成

limeLocal interpretable model-agnostic explanations (LIME)
partialDependenceCompute partial dependence
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
predictorImportanceEstimates of predictor importance for classification ensemble of decision trees
shapleyShapley values

交叉验证分类集成

crossvalCross-validate ensemble
kfoldEdgeClassification edge for cross-validated classification model
kfoldLossClassification loss for cross-validated classification model
kfoldMarginClassification margins for cross-validated classification model
kfoldPredictClassify observations in cross-validated classification model
kfoldfunCross-validate function for classification

测量性能

lossClassification error
resubLossClassification error by resubstitution
compareHoldoutCompare accuracies of two classification models using new data
edgeClassification edge
marginClassification margins
resubEdgeClassification edge by resubstitution
resubMarginClassification margins by resubstitution
testckfoldCompare accuracies of two classification models by repeated cross-validation

为观测值分类

predictClassify observations using ensemble of classification models
resubPredictClassify observations in ensemble of classification models
oobPredictPredict out-of-bag response of ensemble

收集分类集成的属性

gatherGather properties of Statistics and Machine Learning Toolbox object from GPU
TreeBagger
fitcensembleFit ensemble of learners for classification
predictPredict responses using ensemble of bagged decision trees
oobPredictEnsemble predictions for out-of-bag observations

创建 ECOC

fitcecocFit multiclass models for support vector machines or other classifiers
compactReduce size of multiclass error-correcting output codes (ECOC) model

修改 ECOC

discardSupportVectorsDiscard support vectors of linear SVM binary learners in ECOC model

解释 ECOC

limeLocal interpretable model-agnostic explanations (LIME)
partialDependenceCompute partial dependence
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
shapleyShapley values

交叉验证 ECOC

crossvalCross-validate multiclass error-correcting output codes (ECOC) model
kfoldEdgeClassification edge for cross-validated ECOC model
kfoldLossClassification loss for cross-validated ECOC model
kfoldMarginClassification margins for cross-validated ECOC model
kfoldPredictClassify observations in cross-validated ECOC model
kfoldfunCross-validate function using cross-validated ECOC model

测量性能

lossClassification loss for multiclass error-correcting output codes (ECOC) model
resubLossResubstitution classification loss for multiclass error-correcting output codes (ECOC) model
compareHoldoutCompare accuracies of two classification models using new data
edgeClassification edge for multiclass error-correcting output codes (ECOC) model
marginClassification margins for multiclass error-correcting output codes (ECOC) model
resubEdgeResubstitution classification edge for multiclass error-correcting output codes (ECOC) model
resubMarginResubstitution classification margins for multiclass error-correcting output codes (ECOC) model
testckfoldCompare accuracies of two classification models by repeated cross-validation

为观测值分类

predictClassify observations using multiclass error-correcting output codes (ECOC) model
resubPredictClassify observations in multiclass error-correcting output codes (ECOC) model

收集 ECOC 的属性

gatherGather properties of Statistics and Machine Learning Toolbox object from GPU

全部展开

ClassificationEnsembleEnsemble classifier
CompactClassificationEnsembleCompact classification ensemble class
ClassificationPartitionedEnsembleCross-validated classification ensemble
TreeBaggerEnsemble of bagged decision trees
CompactTreeBaggerCompact ensemble of bagged decision trees
ClassificationBaggedEnsembleClassification ensemble grown by resampling
ClassificationECOCMulticlass model for support vector machines (SVMs) and other classifiers
CompactClassificationECOCCompact multiclass model for support vector machines (SVMs) and other classifiers
ClassificationPartitionedECOCCross-validated multiclass ECOC model for support vector machines (SVMs) and other classifiers

主题