Changeset 20 for distools/nne.m


Ignore:
Timestamp:
07/16/11 14:48:08 (13 years ago)
Author:
bduin
Message:

updates for handling soft labels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • distools/nne.m

    r10 r20  
    3333[d,M] = min(D');
    3434e     = mean(nlab(M) ~= nlab);
    35 NNlab = lablist(nlab(M),:);
     35if islabtype(D,'crisp')
     36        NNlab = lablist(nlab(M),:);
     37else
     38        labs = gettargets(D);
     39        NNlab = labs(M,:);
     40end
    3641return;
Note: See TracChangeset for help on using the changeset viewer.