1 %> @brief Records (test group)x([rejected, estimation
class]) hits
3 %> Classification rates don't make sense in this case because there is no way to determine whether the classifications are correct.
4 %> Therefore, these methods are not inherited (they remain
as in @ref
estlog).
7 %> All possible group codes. Assigned directly.
9 %> All possible class labels in estimation datasets
15 o.classtitle = 'Group X Class';
20 methods(Access=protected)
21 %> Returns the contents of the @c estlabels property.
22 function z = get_collabels(o)
26 %> Returns the contents of the @c testlabels property.
27 function z = get_rowlabels(o)
31 function o = do_record(o, pars)
34 ds_test = pars.ds_test;
35 [ds_testgroupcodes, dummy, map] = unique(ds_test.groupcodes); % map contains information similar to crossvalind() output, i.e., repeated numbers mean same group.
37 idxi = find(strcmp(ds_testgroupcodes{i}, o.groupcodes)); % Finds where current group sits in o.groupcodes
39 irerror(sprintf('Group "%s" not found in groupcodes list!', ds_testgroupcodes{i}));
43 sel = estclasses(rowidxs);
45 supp = est.X(rowidxs, 1)
';
48 for j = 1:numel(o.estlabels)
49 idxidxbool = sel == j-1;
50 o.hits(idxi, j+1, o.t) = o.hits(idxi, j+1, o.t)+sum(idxidxbool);
52 o.supports{idxi, j+1, o.t} = supp(idxidxbool);
56 idxidxbool = sel == -1;
57 o.hits(idxi, 1, o.t) = sum(idxidxbool); % Rejection count.
59 o.supports{idxi, 1, o.t} = supp(idxidxbool); % Assumeed that est is the output of a decider block which produces a X with one feature only, which is the support.
Estimation logs base class.
function renumber_classes(in classes_orig, in classlabels_orig, in classlabels_ref)
Analysis Session (AS) base class.
Records (test group)x([rejected, estimation class]) hits.