1 %> @brief Used to record a @ref
ttlog based on test and estimation data
3 %> The purpose is to provide
objtool with a
block that can be used to record a @ref
ttlog based on
6 %> Test data, used
as reference to
compare the classes with those of the estimation dataset (input to use())
8 %> The classifier is used to get the class labels to make a default @ref
estlog if the @ref
logrecorder::
ttlog is not passed
12 %> (Optional) Block to post-process the test data.
14 %> Block to post-process the estimation issued by the classifier.
20 o.classtitle = 'Log recorder';
25 methods(Access=protected)
26 %> Returns the
object with its ttlog ready to have its get_rate() called.
27 function out = do_use(o, est)
30 irerror('Cannot create default ttlog, needs classlabels from clssr!');
33 z = estlog_classxclass();
34 z.estlabels = o.clssr.classlabels;
35 z.testlabels = o.ds_test.classlabels;
40 if isempty(o.postpr_est)
41 if isempty(est.classes)
42 % Will create default postprocessors only if the classes of the estimation dataset are not assigned
44 o.postpr_test =
def_postpr_test(); % Overrides pospr_test because need a harmonic pair
48 if ~isempty(o.postpr_est)
49 o.postpr_est = o.postpr_est.boot();
50 est = o.postpr_est.use(est);
53 if ~isempty(o.postpr_test)
54 o.postpr_test = o.postpr_test.boot();
55 ds_test = o.postpr_test.use(o.ds_test); %
#ok<*PROP>
60 pars.ds_test = ds_test;
64 out = o.ttlog.record(pars);
function irverbose(in s, in level)
function compare(in o1, in o2)
Estimation logs base class.
Records (test class)x([rejected, estimation class]) hits.
Dataset representing estimation.
Analysis Session (AS) base class.
function def_postpr_test(in out)
Used to record a ttlog based on test and estimation data.
function def_postpr_est(in out)