Main Content

resubEdge

Class:ClassificationDiscriminant

Classification edge by resubstitution

Syntax

edge = resubEdge(obj)

Description

edge= resubEdge(obj)returns the classification edge obtained byobjon its training data.

Input Arguments

obj

Discriminant analysis classifier, produced usingfitcdiscr.

Output Arguments

edge

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

Examples

expand all

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

Load Fisher's iris data set.

loadfisheriris

Train a discriminant analysis classifier.

Mdl = fitcdiscr(meas,species);

Compute the resubstitution edge.

redge = resubEdge(Mdl)
redge = 0.9454

More About

expand all