Changeset 109
- Timestamp:
- 05/24/16 17:21:19 (9 years ago)
- Location:
- prextra
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
prextra/emc.m
r100 r109 79 79 lab = labb; 80 80 b = setlabtype(b,labtype,lab); 81 c = [ a; b];81 c = [setlabtype(a,labtype); b]; 82 82 w = c*classf; 83 83 end -
prextra/randomforestc.m
r102 r109 36 36 v{i} = decisiontree(+x,getnlab(x),opt.K,opt.featsubset); 37 37 else 38 prwarning(1,'Slow Matlab code used for training Randomforest classifier') 38 39 v{i} = tree_train(+x,getnlab(x),opt); 39 40 end … … 47 48 nrv = length(v); % nr of trees 48 49 out = zeros(n,K); 49 if exist('decisiontree')==3 50 if exist('decisiontree')==3 && false 50 51 for j=1:nrv 51 52 I = decisiontree(v{j},+a); … … 54 55 else 55 56 % the old fashioned slow Matlab code 57 prwarning(1,'Slow Matlab code used for testing Randomforest classifier') 56 58 for i=1:n 57 59 x = +a(i,:);
Note: See TracChangeset
for help on using the changeset viewer.