1 %> @brief Records (1)x([rejected, right, wrong]) hits
3 %> For right/wrong to be detected, classlabels from estimation and test datasets need to follow same system, which is
4 %> represented by the @c estlabels property.
7 %> All possible class labels in estimation datasets
9 %> =2. Index of element: 1-rejected; 2-right; 3-wrong
15 o.classtitle = 'Right/Wrong';
19 %> Returns average sensitivity. Calculated
as normalized sum.
20 function z = get_rate(o)
21 C = o.get_C([], 1, 2, 1); % Average time-wise percentage with discounted items
25 %> Returns vector of time-wise averages.
26 function z = get_rates(o)
27 CC = o.get_C([], 1, 0, 1); % gets time-wise percentage with discounted items
28 z = permute(CC(1, o.idx_rate, :), [1, 3, 2]);
32 methods(Access=protected)
33 %> Returns fixed {
'Right',
'Wrong'} cell.
34 function z = get_collabels(o)
35 z = {
'Right',
'Wrong'};
38 %> Returns fixed {
'---'} cell.
39 function z = get_rowlabels(o)
43 function o = do_record(o, pars)
45 ds_test = pars.ds_test;
47 classes2 =
renumber_classes(ds_test.classes, ds_test.classlabels, o.estlabels);
49 boolc = classes1 == classes2;
50 boolr = classes1 == -1;
51 no_correct = sum(boolc);
52 no_reject = sum(boolr);
53 o.hits(:, :, o.t) = [no_reject, no_correct, est.no-no_reject-no_correct];
56 o.supports(:, :, o.t) = {est.X(boolr, :)
', est.X(boolc, :)', est.X(~boolc & ~boolr, :)
'};
Estimation logs base class.
Records (1)x([rejected, right, wrong]) hits.
function renumber_classes(in classes_orig, in classlabels_orig, in classlabels_ref)
Analysis Session (AS) base class.