margin
Classification margins for classification tree model
Description
returns the classification margins
m
= margin(tree
,Tbl
,ResponseVarName
)m
for the trained classification tree model tree
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
.
Examples
Input Arguments
More About
Extended Capabilities
Version History
Introduced in R2011a
See Also
predict
| loss
| edge
| fitctree
| ClassificationTree
| CompactClassificationTree