resubMargin
Class: ClassificationTree
Classification margins by resubstitution
Syntax
M = resubMargin(tree)
Input Arguments
|
A classification tree created by |
Output Arguments
|
A numeric column-vector of length |
Examples
Find the margins for a classification tree for the Fisher iris data by resubstitution. Examine several entries:
load fisheriris
tree = fitctree(meas,species);
M = resubMargin(tree);
M(1:25:end)
ans = 1.0000 1.0000 1.0000 1.0000 0.9565 0.9565
More About
Extended Capabilities
See Also
margin
| resubLoss
| resubPredict
| resubEdge
| fitctree