ClassificationBaggedEnsemble class
Superclasses:
Classification ensemble grown by resampling
描述
ClassificationBaggedEnsemble
combines a set of trained weak learner models and data on which these learners were trained. It can predict ensemble response for new data by aggregating predictions from its weak learners.
Construction
Create a bagged classification ensemble object usingfitcensemble
.
Properties
|
Categorical predictor indices, specified as a vector of positive integers. |
|
元素列表 |
|
角色向量描述了如何 |
|
Expanded predictor names, stored as a cell array of character vectors. If the model uses encoding for categorical variables, then |
|
Numeric array of fit information. The |
|
角色向量描述了 |
|
Numeric scalar between |
|
描述的cross-validation optimization of hyperparameters, stored as a
|
|
Character vector describing the method that creates |
|
Parameters used in training |
|
Number of trained weak learners in |
|
预测变量的单元格数字,按照它们出现的顺序 |
|
Character vector describing the reason |
|
Logical value indicating if the ensemble was trained with replacement ( |
|
Character vector with the name of the response variable |
|
用于转换分数的功能句柄或代表内置转换函数的字符向量。 Add or change a ens.scoretransform ='功能' 或者 ens.scoretransform = @功能 |
|
受过训练的学习者,紧凑的分类模型的单元格数组。 |
|
较弱学习者的训练重量的数字向量 |
|
逻辑矩阵的大小 |
|
缩放 |
|
Matrix of predictor values that trained the ensemble. Each column of |
|
一个分类数组,字符向量的单元格数组,字符阵列,逻辑向量或数字向量与行相同数量的行 |
方法
OOBEDGE | Out-of-bag classification edge |
oobLoss | Out-of-bag classification error |
OOBMARGIN | Out-of-bag classification margins |
oobPermutedPredictorImportance | 预测指标通过对分类树的随机森林的排列外预测观测的置换来预测重要性估计 |
oobPredict | Predict out-of-bag response of ensemble |
Inherited Methods
袖珍的 | 紧凑型分类合奏 |
crossval | Cross validate ensemble |
resubEdge | Classification edge by resubstitution |
重新公开 | 分类错误通过重述 |
repubmargin | 通过重新确定的分类利润率 |
resubPredict | 通过重新结算预测合奏的反应 |
resume | 简历培训合奏 |
比较 | 使用新数据比较两个分类模型的精度 |
边缘 | Classification edge |
loss | 分类错误 |
margin | 分类边缘 |
预测 | Predict labels using ensemble of classification models |
预测或者Importance | 预测指标的重要性 |
删除者 | Remove members of compact classification ensemble |
Copy Semantics
价值。要了解价值类别如何影响复制操作,请参见复制对象(MATLAB)。
例子
提示
对于分类树的包装合奏,训练有素
property ofens
存储一个细胞向量en.
compactClassificationTree
model objects. For a textual or graphical display of treet
在单元向量中,输入
查看(ens.trained {t})