Changeset 102


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

A few bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prextra/randomforestc.m

    r23 r102  
    2020end
    2121if nargin<1 || isempty(a)
    22         w = mapping(mfilename,{L,featsubset});
     22        w = prmapping(mfilename,{L,featsubset});
    2323        w = setname(w,'Random forest (L=%d)',L);
    2424        return
     
    3939        end
    4040        end
    41         w = mapping(mfilename,'trained',v,getlablist(a),dim,opt.K);
     41        w = prmapping(mfilename,'trained',v,getlablist(a),dim,opt.K);
    4242        w = setname(w,'Random forest (L=%d)',L);
    4343else
     
    5050        for j=1:nrv
    5151            I = decisiontree(v{j},+a);
    52             out = out + accumarray([(1:n)' I],ones(n,1));
     52            out = out + accumarray([(1:n)' I],ones(n,1),[n K]);
    5353        end
    5454    else
Note: See TracChangeset for help on using the changeset viewer.