Main Content

resubEdge

Resubstitution classification edge for classification tree model

Description

edge = resubEdge(tree) returns the resubstitution classification edge (edge) for the trained classification tree model tree using the training data stored in tree.X and the corresponding true class labels stored in tree.Y. The classification edge is a numeric scalar value that represents the margin averaged over the entire data set, and is returned as a numeric scalar.

example

Examples

collapse all

Estimate the quality of a classification tree for the Fisher iris data by resubstitution.

load fisheriris
tree = fitctree(meas,species);
redge = resubEdge(tree)
redge =
    0.9384

Input Arguments

collapse all

Classification tree model, specified as a ClassificationTree model object trained with fitctree.

More About

collapse all

Extended Capabilities

expand all

Version History

Introduced in R2011a