1 %> @brief
"Rater" class
3 %> This
class makes simple the job evaluating a classifier performance through cross-validation. It fills in all
4 %> properties with
default values, except from @c data:
5 %> @arg Default postpr_est
6 %> @arg Default postpr_test
9 %> @arg Even
default classifier
13 %> @sa uip_rater.m, demo_rater.m
17 %> (Optional). If two datasets are passed, a SGS is not created, but the datasets are used instead
for a single train-test
19 %> (Optional) Block to post-process the test data.
21 %> Block to post-process the estimation issued by the classifier.
26 properties(SetAccess=
protected)
33 o.classtitle = 'Rater';
37 methods(Access=protected)
38 %> Returns the
object with its
ttlog ready to have its get_rate() called.
39 function log = do_use(o, data)
43 obsidxs = o.
sgs.get_obsidxs(data);
44 datasets = data.split_map(obsidxs(:, [1, 2]));
46 no_reps = size(obsidxs, 1);
48 log = o.
ttlog.allocate(no_reps);
51 log =
traintest(log, o.
clssr, datasets(i, 1), datasets(i, 2), o.postpr_test, o.postpr_est);
56 log = o.
ttlog.allocate(1);
57 log =
traintest(log, o.clssr, data(1), data(2), o.postpr_test, o.postpr_est);
61 function z = get_rate(o)
63 z = o.
ttlog.get_rate();
66 function z = get_rate_with_clssr(o, x)
72 function o = check(o, data)
74 if isempty(o.postpr_est)
76 o.postpr_test =
def_postpr_test(); % Overrides pospr_test because need a harmonic pair
82 irverbose('Rater is creating default SGS', 2);
91 z = estlog_classxclass();
92 z.estlabels = data(1).classlabels;
93 z.testlabels = z.estlabels;
function irverbose(in s, in level)
Base Sub-dataset Generation Specification (SGS) class.
function progress2_change(in prgrss, in title, in perc, in i, in n)
function progress2_open(in title, in perc, in i, in n)
function traintest(in logs, in blk, in ds_train, in ds_test, in postpr_test, in postpr_est)
Records (test class)x([rejected, estimation class]) hits.
function progress2_close(in prgrss)
Analysis Session (AS) base class.
function def_clssr(in out)
function def_postpr_test(in out)
function def_postpr_est(in out)
REpeated Train-Test - Block Cube.