Package: classreg.learning.classif
Compact discriminant analysis class
A CompactClassificationDiscriminant
object is a
compact version of a discriminant analysis classifier. The compact version does not
include the data for training the classifier. Therefore, you cannot perform some tasks
with a compact classifier, such as cross validation. Use a compact classifier for making
predictions (classifications) of new data.
constructs a compact classifier from a full classifier.cobj
=
compact(obj
)
constructs a compact discriminant analysis classifier from the class means
cobj
= makecdiscr(Mu
,Sigma
)Mu
and covariance matrix Sigma
. For syntax
details, see makecdiscr
.

Discriminant analysis classifier, created using 



Categorical predictor indices, which is always empty ( 

List of the elements in the training data 

The equation of the boundary between class
where If 

Square matrix, where Change a 

Value of the Delta threshold for a linear discriminant model,
a nonnegative scalar. If a coefficient of
Change 

Row vector of length equal to the number of predictors in If 

Character vector specifying the discriminant type. One of:
Change You can change between linear types, or between quadratic types, but cannot change between linear and quadratic types. 

Value of the Gamma regularization parameter, a scalar from


Logarithm of the determinant of the withinclass covariance
matrix. The type of


Nonnegative scalar, the minimal value of the Gamma parameter
so that the correlation matrix is invertible. If the correlation matrix
is not singular, 

Class means, specified as a 

Cell array of names for the predictor variables, in the order
in which they appear in the training data 

Numeric vector of prior probabilities for each class. The order
of the elements of Add or change a 

Character vector describing the response variable 

Character vector representing a builtin transformation function, or a function handle for
transforming scores. Implement dot notation to add or change a


Withinclass covariance matrix or matrices. The dimensions depend
on

compareHoldout  Compare accuracies of two classification models using new data 
edge  Classification edge 
lime  Local interpretable modelagnostic explanations (LIME) 
logp  Log unconditional probability density for discriminant analysis classifier 
loss  Classification error 
mahal  Mahalanobis distance to class means of discriminant analysis classifier 
margin  Classification margins 
nLinearCoeffs  Number of nonzero linear coefficients 
partialDependence  Compute partial dependence 
plotPartialDependence  Create partial dependence plot (PDP) and individual conditional expectation (ICE) plots 
predict  Predict labels using discriminant analysis classification model 
shapley  Shapley values 
Value. To learn how value classes affect copy operations, see Copying Objects.
ClassificationDiscriminant
 compact
 makecdiscr
 fitcdiscr
 predict
 compareHoldout