Changeset 90


Ignore:
Timestamp:
03/14/14 13:17:19 (11 years ago)
Author:
dtax
Message:

More help.

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
    18function w = lassoc(x, lambda)
    2 % w = lassoc(x, lambda)
    3 %prtrace(mfilename);
    49
    510mustScale=0;
     
    1015end
    1116if (nargin < 1) | (isempty(x))
    12         w = mapping(mfilename,{lambda});
     17        w = prmapping(mfilename,{lambda});
    1318        w = setname(w,'LASSO classifier');
    1419        return
     
    4449    W.beta = beta; % the ultimate weights
    4550    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);
    4752    w = setname(w,'LASSO classifier');
    4853
Note: See TracChangeset for help on using the changeset viewer.