Changeset 108 for prextra/lassoc.m
- Timestamp:
- 04/18/16 11:53:42 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prextra/lassoc.m
r99 r108 32 32 x.data = x.data*wsc; 33 33 end 34 % make sure a bias is added: 35 x = [x ones(n,1)]; 34 36 35 37 if c ~= 2 % two-class classifier: … … 57 59 W.nr = nr; 58 60 w = prmapping(mfilename,'trained',W,getlablist(x),size(x,2),c); 59 w = setname(w,'LASSO classifier ');61 w = setname(w,'LASSO classifier (l=%f)',lambda); 60 62 61 63 else … … 68 70 x = x*W.wsc; 69 71 end 72 % make sure a bias is added: 73 x = [x ones(n,1)]; 74 %go: 70 75 out = x*W.beta; 71 76
Note: See TracChangeset
for help on using the changeset viewer.