-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmethods_evaluation.m
More file actions
36 lines (33 loc) · 1.05 KB
/
methods_evaluation.m
File metadata and controls
36 lines (33 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
clear
load('FACE_16x16x1000x10.mat')
whos
X = orzNormalize(orzReshape(DATA,1));
[nDim, nNum, nClass] = size(X);
X1 = X(:,1:100,:);
X2 = X(:,101:1000,:);
X2 = orzSlidingData(X2,25,25);
[nDim,nNum2,nSet2,nClass] = size(X2);
% nSubDim1 = 15;
% nSubDim2 = 5;
max_subdim_reference_subspace = 20; % or any other integer value
max_subdim_input_subspace = 5; % or any other integer value
max_sigma = 1; % or any other positive value
max_nk = 4;
nSubDim1 = num2cell(2:max_subdim_reference_subspace);
nSubDim2 = num2cell(2:max_subdim_input_subspace);
nSigma = num2cell(linspace(0.1,max_sigma,10));
% TODO: NOW WE GOT A PROBLEM WHERE THE NUMBER OF K NUST BE TEH SAME AS THE INP SUBDIM
% nk = num2cell(2:4);
nSubDim1 = {20};
nSubDim2 = {5};
nk = {20};
nSigma = {1};
% nk = num2cell(2:max_nk);
% disp(size(nk, 2));
% KmeanKOMSM
disp('------- KmeanKOMSM -------');
KmeansKOMSMEval(X1, X2, nSubDim1, nSubDim2, nSigma, nk);
% KmeanKOMSM with RFF
disp('------- KmeanKOMSM with RFF -------');
numRandFeats = 1000;
KmeansKOMSMEval(X1, X2, nSubDim1, nSubDim2, nSigma, nk, 'RFF', numRandFeats);