mdl — Trained discriminant analysis classifier ClassificationDiscriminant model object
Trained discriminant analysis classifier, specified as a ClassificationDiscriminant model object. To create a discriminant analysis
classifier, use fitcdiscr.
label — Response that mdl predicts for the training data same data type as the training response data mdl.Y
Response that mdl predicts for the training data, returned as the
same data type as the training response data mdl.Y. The predicted
class labels are those with minimal expected misclassification cost. See Prediction Using Discriminant Analysis Models.
posterior — Posterior probabilities for classes that mdl predicts N-by-K matrix
Posterior probabilities for classes that mdl predicts, returned
as an N-by-K matrix. Here, N is
the number of observations, and K is the number of classes.
Predicted misclassification costs, returned as an
N-by-K matrix. Here, N is the
number of observations, and K is the number of classes. Each cost is
the average misclassification cost with respect to the posterior probability.
R2023b: Observations with missing predictor values are used in resubstitution and cross-validation computations
Starting in R2023b, the following classification model object functions use observations with
missing predictor values as part of resubstitution ("resub") and cross-validation ("kfold")
computations for classification edges, losses, margins, and predictions.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.