I am trying to do the 2-class classification using regularized discriminant analysis in Matlab using fitdiscr()
function. The coefficients are stored in the object created by created by fitdiscr()
. But the coefficients are stored in a 2x2 cell, shouldn't there be just one coefficients vector for any given discriminant analysis problem?
load('AA.mat')
obj = fitcdiscr(AA',actual_group','SaveMemory','on','FillCoeffs','on')
The coefficients are stored in obj.Coeffs
.
Here is the data that I am using, first 10 columns belong to class-0 and last 10 column belong to class-1.