margin
Classification margins for classification ensemble model
Syntax
Description
returns the classification margins
m
= margin(ens
,tbl
,ResponseVarName
)m
for the trained classification ensemble model
ens
using the predictor data in table
tbl
and the true class labels in
tbl.ResponseVarName
.
The classification margin is the difference between the classification score for
the true class and the maximal classification score for the false classes.
m
is a column vector with the same number of rows as in
tbl
.
specifies options using one or more name-value arguments in addition to any of the
input argument combinations in the previous syntaxes. For example, you can specify
the indices of weak learners in the ensemble to use for calculating margins, and
perform computations in parallel.m
= margin(___,Name=Value
)
Examples
Input Arguments
More About
Extended Capabilities
Version History
Introduced in R2011a