margin
Classification margins for discriminant analysis classifier
Description
returns the Classification Margin (m = margin(Mdl,Tbl,ResponseVarName)m) for the trained discriminant
analysis classifier Mdl using the predictor data in table
Tbl and the class labels in
Tbl.ResponseVarName.
returns the classification margins for m = margin(Mdl,X,Y)Mdl using the predictor data in
matrix X and the class labels in Y.
The classification margin is the difference between the classification score for the
true class and the maximal classification score for the false classes.
m is returned as a numeric vector with the same length as
Y.
Examples
Input Arguments
More About
Extended Capabilities
Version History
Introduced in R2011b