comparison DL/Majorization Minimization DL/wrapper_mm_solver.m @ 161:f42aa8bcb82f ivand_dev

debug and clean the SMALLbox Problems code
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Wed, 31 Aug 2011 12:02:19 +0100
parents b14209313ba4
children 0c7c20f3246c
comparison
equal deleted inserted replaced
155:b14209313ba4 161:f42aa8bcb82f
31 % to - 1/(step size) . It is larger than spectral norm of dictionary A 31 % to - 1/(step size) . It is larger than spectral norm of dictionary A
32 32
33 if isfield(param, 'to') 33 if isfield(param, 'to')
34 to = param.to; 34 to = param.to;
35 else 35 else
36 to = .1+svds(A,1); 36 to = .1+(svds(A,1))^2;
37 end 37 end
38 38
39 % lambda - Lagrangian multiplier. (regulates shrinkage) 39 % lambda - Lagrangian multiplier. (regulates shrinkage)
40 40
41 if isfield(param, 'lambda') 41 if isfield(param, 'lambda')
63 % Debiasing. 0 = No, 1 = Yes 63 % Debiasing. 0 = No, 1 = Yes
64 64
65 if isfield(param, 'map') 65 if isfield(param, 'map')
66 map = param.map; 66 map = param.map;
67 else 67 else
68 map = 1; 68 map = 0;
69 end 69 end
70 70
71 71
72 [X, cost] = mm1(A,b,initX,to,lambda,maxIT,epsilon,map); 72 [X, cost] = mm1(A,b,initX,to,lambda,maxIT,epsilon,map);
73 cost 73 cost