Implementation of the linear discriminant classifier. Classes are modeled as Gaussians with different means but equal covariance matrices. The optimal covariance matrix and means for the classes are found using maximum likelihood, which, in this case, has a closed form solution.
LinearDiscriminantClassifier(X, y, method = "closedform", prior = NULL,
scale = FALSE, x_center = FALSE)
S4 object of class LeastSquaresClassifier with the following slots:
weight vector
the prior probabilities of the classes
the estimates means of the classes
The estimated covariance matrix
a vector with the classnames for each of the classes
scaling object used to transform new observations
Design matrix, intercept term is added within the function
Vector or factor with class assignments
the method to use. Either "closedform" for the fast closed form solution or "ml" for explicit maximum likelihood maximization
A matrix with class prior probabilities. If NULL, this will be estimated from the data
logical; If TRUE, apply a z-transform to the design matrix X before running the regression
logical; Whether the feature vectors should be centered
Other RSSL classifiers:
EMLeastSquaresClassifier
,
EMLinearDiscriminantClassifier
,
GRFClassifier
,
ICLeastSquaresClassifier
,
ICLinearDiscriminantClassifier
,
KernelLeastSquaresClassifier
,
LaplacianKernelLeastSquaresClassifier()
,
LaplacianSVM
,
LeastSquaresClassifier
,
LinearSVM
,
LinearTSVM()
,
LogisticLossClassifier
,
LogisticRegression
,
MCLinearDiscriminantClassifier
,
MCNearestMeanClassifier
,
MCPLDA
,
MajorityClassClassifier
,
NearestMeanClassifier
,
QuadraticDiscriminantClassifier
,
S4VM
,
SVM
,
SelfLearning
,
TSVM
,
USMLeastSquaresClassifier
,
WellSVM
,
svmlin()