Package:classreg.learning.classif.
Superclasses:分类Ensemble
通过重采样种植的分类集合
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.
使用袋装分类合奏对象使用fitcensemble.
。Set the name-value pair argument'方法'
的fitcensemble.
至'Bag'
使用Bootstrap聚合(袋装,例如随机林)。
|
Bin edges for numeric predictors, specified as a cell array ofp数字向量,在哪里pis the number of predictors. Each vector includes the bin edges for a numeric predictor. The element in the cell array for a categorical predictor is empty because the software does not bin categorical predictors. 这software bins numeric predictors only if you specify the 您可以重现Binned Predictor数据 x = mdl.x;%predictor数据xbinned = zeros(size(x));边缘= mdl.bineges;%查找箱预测因子的指数。idxnumeric = find(〜cellfun(@ isempty,边));如果是iscumn(idxnumeric)idxnumeric = idxnumeric';j = idxnumeric x = x(:,j);如果x是表,%将x转换为数组。如果是Istable(x)x = table2array(x);结束%X通过使用X进入垃圾箱
Xbinned contains the bin indices, ranging from 1 to the number of bins, for numeric predictors.Xbinned values are 0 for categorical predictors. IfX containsNaN s,然后相应的Xbinned values areNaN s。 |
|
分类预测索引指定为正整数的向量。 |
|
List of the elements in |
|
描述如何的字符矢量 |
|
扩展的预测器名称,存储为字符向量的单元格数组。 If the model uses encoding for categorical variables, then |
|
拟合信息的数字数组。这 |
|
描述含义的字符矢量 |
|
数字标量 |
|
超参数的交叉验证优化的描述,存储为a
|
|
描述创造方法的字符矢量 |
|
用于培训的参数 |
|
培训的弱学习者数量 |
|
Cell array of names for the predictor variables, in the order in which they appear in |
|
描述原因的字符矢量 |
|
Logical value indicating if the ensemble was trained with replacement ( |
|
Character vector with the name of the response variable |
|
用于转换分数的功能手柄,或表示内置变换函数的字符矢量。 添加或更改 ens.ScoreTransform = '功能' 或者 ens.ScoreTransform = @功能 |
|
Trained learners, a cell array of compact classification models. |
|
Numeric vector of trained weights for the weak learners in |
|
逻辑矩阵的大小 |
|
Scaled |
|
Matrix or table of predictor values that trained the ensemble. Each column of |
|
一个分类阵列,字符向量,字符阵列,逻辑向量的单元阵列,或具有相同行数的数字矢量 |
compact |
Compact classification ensemble |
compareHoldout |
Compare accuracies of two classification models using new data |
crossval |
交叉验证合奏 |
边缘 |
分类边缘 |
lime |
Local interpretable model-agnostic explanations (LIME) |
失利 |
分类error |
利润 |
分类利润s |
oObederge. |
袋外分类边缘 |
oobloss. |
Out-of-bag classification error |
oobMargin |
Out-of-bag classification margins |
oobPermutedPredictorImportance |
Predictor importance estimates by permutation of out-of-bag predictor observations for random forest of classification trees |
Oobpredict. |
预测集合的袋子响应 |
partialDependence |
计算部分依赖 |
plotPartialDependence |
Create partial dependence plot (PDP) and individual conditional expectation (ICE) plots |
预测 |
使用分类模型的集体分类观察 |
预测或者Importance |
Estimates of predictor importance for classification ensemble of decision trees |
removeLearners |
Remove members of compact classification ensemble |
resubEdge |
分类边缘by resubstitution |
resubLoss |
分类error by resubstitution |
resubMargin |
分类利润s by resubstitution |
resubPredict |
分类在分类模型的集合中的观察 |
resume |
恢复训练合奏 |
shapley |
福利价值观 |
testckfold. |
通过重复的交叉验证比较两个分类模型的精度 |
价值。要了解值类如何影响复制操作,请参阅Copying Objects。
对于一个袋装的分类树系列,Trained
property ofens
stores a cell vector ofens.NumTrained
CompactClassificationTree.
模型对象。用于树的文本或图形显示t
in the cell vector, enter
看法(ens.Trained{t})