[b4b313]: / classification / bagging / graphBags.m

Download this file

24 lines (16 with data), 535 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
function graphBags( bags, leafs, figureName )
%GRAPHBAGS Summary of this function goes here
% Detailed explanation goes here
labels = num2cell(leafs);
labels = cellfun(@num2str,labels,'UniformOutput',0);
col = 'rgbcmy';
figure('name',figureName);
for i=1:size(bags,2)
plot(oobError(bags{i}),col(i));
hold on;
end
xlabel('number of grown trees');
ylabel('out-of-bag classification error');
legend(labels,'Location','NorthEast');
hold off;
end