1 %> @brief Estimation Aggregator - Winner takes all
3 %> For each row, the output will be the output of the dataset that contains the highest confidence degree
7 o.classtitle = 'Winner-Takes-All';
12 methods(Access=protected)
14 function out = do_use(o, dd)
15 dd = o.apply_threshold(dd);
17 out = dd(1).copy_emptyrows();
18 out = out.copy_from_data(dd(1));
21 X = zeros(dd(1).no, dd(1).nf);
22 Xbig = [dd.X]; % Horizontal concatenation
24 [vv, ii] = max(Xbig, [], 2);
25 ii = floor((ii-1)/3)+1; % Determines which dataset contains the maximum for each row
26 ii = [(ii-1)*nf+1, ii*nf]; % initial and end position into Xbig for each row
28 % Unfortunately I don't know how to avoid this loop
30 X(i, :) = Xbig(i, ii(i, 1):ii(i, 2));
Estimation Aggregator - Winner takes all.
Estimation Aggregator - combines estimato objects together.