Changeset 104


Ignore:
Timestamp:
12/07/15 14:43:01 (9 years ago)
Author:
dtax
Message:

More robust thresholds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prextra/lessc.m

    r5 r104  
    9393                % find out how many features are relevant:
    9494                if (include_bias)
    95                         I = find(abs(w(1:(end-1)))>0);
     95                        I = find(abs(w(1:(end-1)))>1e-8);
    9696                        nr = length(I);
    9797                else
    98                         I = find(abs(w)>0);
     98                        I = find(abs(w)>1e-8);
    9999                        nr = length(I);
    100100                end
Note: See TracChangeset for help on using the changeset viewer.