Changeset 108


Ignore:
Timestamp:
04/18/16 11:53:42 (8 years ago)
Author:
dtax
Message:

new and improved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prextra/lassoc.m

    r99 r108  
    3232        x.data = x.data*wsc;
    3333    end
     34    % make sure a bias is added:
     35    x = [x ones(n,1)];
    3436
    3537    if c ~= 2  % two-class classifier:
     
    5759    W.nr = nr;
    5860    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);
    6062
    6163else
     
    6870        x = x*W.wsc;
    6971    end
     72    % make sure a bias is added:
     73    x = [x ones(n,1)];
     74    %go:
    7075    out = x*W.beta;
    7176
Note: See TracChangeset for help on using the changeset viewer.