Main Content

resubEdge

Resubstitution classification edge for discriminant analysis classifier

Description

edge = resubEdge(Mdl) returns the resubstitution classification Classification Edge (edge) for the trained discriminant analysis classifier Mdl using the training data stored in Mdl.X and the corresponding true class labels stored in Mdl.Y. The classification edge is the Classification Margin averaged over the entire data set.

example

Examples

collapse all

Estimate the quality of a discriminant analysis classifier for Fisher's iris data by resubstitution.

Load Fisher's iris data set.

load fisheriris

Train a discriminant analysis classifier.

Mdl = fitcdiscr(meas,species);

Compute the resubstitution edge.

redge = resubEdge(Mdl)
redge = 
0.9454

Input Arguments

collapse all

Discriminant analysis classifier, specified as a ClassificationDiscriminant model object trained with fitcdiscr.

More About

collapse all

Version History

Introduced in R2011b

expand all