Changeset 102
- Timestamp:
- 12/07/15 14:41:12 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prextra/randomforestc.m
r23 r102 20 20 end 21 21 if nargin<1 || isempty(a) 22 w = mapping(mfilename,{L,featsubset});22 w = prmapping(mfilename,{L,featsubset}); 23 23 w = setname(w,'Random forest (L=%d)',L); 24 24 return … … 39 39 end 40 40 end 41 w = mapping(mfilename,'trained',v,getlablist(a),dim,opt.K);41 w = prmapping(mfilename,'trained',v,getlablist(a),dim,opt.K); 42 42 w = setname(w,'Random forest (L=%d)',L); 43 43 else … … 50 50 for j=1:nrv 51 51 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]); 53 53 end 54 54 else
Note: See TracChangeset
for help on using the changeset viewer.