Discriminant Analysis

Regularized linear and quadratic discriminant analysis

To interactively train a discriminant analysis model, use the Classification Learner app. For greater flexibility, train a discriminant analysis model using fitcdiscr in the command-line interface. After training, predict labels or estimate posterior probabilities by passing the model and predictor data to predict.


Classification Learner Train models to classify data using supervised machine learning


fitcdiscr Fit discriminant analysis classifier
predict Predict classification
templateDiscriminant Discriminant analysis classifier template
loss Classification error
crossval Cross-validated discriminant analysis classifier
cvshrink Cross-validate regularization of linear discriminant
logP Log unconditional probability density for discriminant analysis classifier
compareHoldout Compare accuracies of two classification models using new data
mahal Mahalanobis distance to class means
nLinearCoeffs Number of nonzero linear coefficients


ClassificationDiscriminant Discriminant analysis classification
CompactClassificationDiscriminant Compact discriminant analysis class
ClassificationPartitionedModel Cross-validated classification model

Was this topic helpful?