Main Content

resubEdge

Class: ClassificationTree

Classification edge by resubstitution

Syntax

edge = resubEdge(tree)

Description

edge = resubEdge(tree) returns the classification edge obtained by tree on its training data.

Input Arguments

tree

A classification tree created using fitctree.

Output Arguments

edge

Classification edge obtained by resubstituting the training data into the calculation of edge.

Examples

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

More About

expand all

Extended Capabilities