Changeset 90
- Timestamp:
- 03/14/14 13:17:19 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prextra/lassoc.m
r5 r90 1 %LASSOC 2 % 3 % W = LASSOC(X, LAMBDA) 4 % 5 % Train the LASSO classifier on dataset X. LAMBDA is the regularization 6 % parameter. 7 1 8 function w = lassoc(x, lambda) 2 % w = lassoc(x, lambda)3 %prtrace(mfilename);4 9 5 10 mustScale=0; … … 10 15 end 11 16 if (nargin < 1) | (isempty(x)) 12 w = mapping(mfilename,{lambda});17 w = prmapping(mfilename,{lambda}); 13 18 w = setname(w,'LASSO classifier'); 14 19 return … … 44 49 W.beta = beta; % the ultimate weights 45 50 W.nr = nr; 46 w = mapping(mfilename,'trained',W,getlablist(x),size(x,2),c);51 w = prmapping(mfilename,'trained',W,getlablist(x),size(x,2),c); 47 52 w = setname(w,'LASSO classifier'); 48 53
Note: See TracChangeset
for help on using the changeset viewer.