-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathgurls_defopt.m
More file actions
85 lines (68 loc) · 2.47 KB
/
Copy pathgurls_defopt.m
File metadata and controls
85 lines (68 loc) · 2.47 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
function opt = gurls_defopt(expname)
if (nargin < 1)
fprintf('Your experiment must be given a unique name\n');
end
opt = GurlsOptions();
opt.newprop('time', {});
%% Experiment options
opt.newprop('name', expname); % We can make this argument mandatory; Unique name per experiment
opt.newprop('savefile', [opt.name '.mat']);
opt.newprop('save', true);
%% Algorithm options
opt.newprop( 'kernel', struct());
opt.newprop( 'predkernel', struct());
opt.kernel.type = 'rbf';
opt.newprop( 'singlelambda', @median); % give the function for combining your lambdas; could be max, min or mean, for instance.
opt.newprop( 'smallnumber' ,1e-8); % lambda is searched between [min(eig_r, opt.smallnumber), eig_1], where r = rank, eig_1 = max eig val.
%% Random SVD options
opt.newprop('eig_percentage', 5); %percentage of eigenvectors to be used in the randomized SVD
%% Iteartive RLS options
opt.newprop('IterRLSMaxIter', 1000);
opt.newprop('IterRLSMinIter', 5);
opt.newprop('IterRLSStopTol', 0.001);
opt.newprop('IterRLSSeriesType','geometric');
%% GD Options
opt.newprop('gd', struct());
opt.gd.method = 0; % standard gradient descent
opt.gd.maxiter = 1000;
opt.gd.singleiter = @median;
opt.gd.eta_numerator = 1;
opt.gd.nu = 1;
%% CG Options
opt.newprop('cg', struct());
opt.cg.maxiter = 1000;
opt.cg.singleiter = @median;
%% Output options
opt.newprop('hoperf', @perf_macroavg);
opt.newprop('nholdouts', 1);
%% Data option
opt.newprop( 'hoproportion', 0.2);
opt.newprop( 'nlambda', 20);
opt.newprop( 'nsigma', 25);
%% Quiet
% Currenty either 0 or 1; levels of verbosity may be implemented later;
opt.newprop( 'verbose', 1);
%% Version info
opt.newprop( 'version', 2.0);
%% Online
opt.newprop( 'epochs', 4);
opt.newprop( 'subsize', 50);
opt.newprop( 'calibfile', 'foo');
%% Random features options
opt.newprop( 'randfeats', struct());
opt.randfeats.D = 500;
opt.randfeats.samplesize = 100;
%% Nystrom options
opt.newprop( 'nystrom', struct());
opt.nystrom.m = 100;
%% opt base
opt.newprop( 'jobid', 1);
opt.newprop( 'seq', {});
opt.newprop( 'process', {});
%% ISTA options
opt.newprop( 'ISTAalpha',1);
opt.newprop( 'ISTAniter',inf);
opt.newprop( 'ISTArelthre',1e-4);
opt.newprop( 'ISTASparsitylvl',inf);
opt.newprop( 'ISTASAccuReq',0);
end