Compression using Auto encoder then Classification using LDA

hello ... I have to matrices with size (175*19),(175*1) respectively, first I need to compress these two matrics to a smaller size for example (5*19), (5*1) respectively. .
. Then I will compare them using LDA >>>>
%%%%%%%%%%%%%%%%%%%%%%%Training %%%%%%%%%%%%%%%%%%%%%%%
trainData = ; % (5*19)
trainData = trainData';
Lables= [1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0]; %(1*19)
Mdl = fitcdiscr(trainData,Lables);
%%%%%%%%%%%%%%%%%%%%%%%Testing %%%%%%%%%%%%%%%%%%%%%%%
testData=.... %(5*1)
testData = testData';
result = predict(Mdl,testData);
end
my question is how can I compress my matrics (note that the second matrix is small but I need it to be same as the size of the first).

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by