-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCLRFscriptStudents.m
55 lines (45 loc) · 1.24 KB
/
CLRFscriptStudents.m
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Data : Student
% Algorithm : CLRF
% This script performs training and testing using CLRF on
% the beach dataset.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear
% Parameters : %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
maxIter = 10;
options.method = 'CLRG1';
options.diffBias = 1;
options.thrsh = 1e-5;
options.isBox = 0;
options.isTest = 0;
dataset = 'StudentSmall';
clampedSetTrain = [];
clampedSetTest =[];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
addpath(genpath('UGM'))
addpath('toolbox')
addpath('Functions')
rng('shuffle')
[Data,covType,depCovType] = loadData(dataset);
bCovType = Data.bCovType;
%loading the edge model
% load('../edgeParamsFullTwitter/eParamsCond.mat')
% eParams = x;
% eLL = y;
% matlabpool local 10
for iteration = 1:maxIter
[EMout,augTrainData,augTestData,trainResults,testResults] = ...
CLRFedu(...
Data,...
bCovType,...
depCovType,...
clampedSetTrain,...
clampedSetTest,...
options);
CLRFparsave(sprintf('vertexOutCond%d.mat',iteration),EMout,augTrainData,augTestData,trainResults,testResults)
end
% matlabpool close
% save('workspace.mat')
%
% exit