1 %> @brief Train-Test Log.
3 %> Base
class for objects that have the record(pars) method. Pars may contain a reference dataset; an estimation dataset; a
block; ...
6 %> =1. Whether to increment time whenever something is recorded
10 properties(SetAccess=
protected)
11 %> Whether @c allocate() has been called.
13 %> Number of allocated slots (call to allocate())
17 methods(Access=protected) %, Abstract)
18 %> Abstract. Called to
pre-allocate matrices. Must be called only when @c collabels and @c rowlabels can be resolved
19 %> (reaching this varies along @c
ttlog descendants).
20 function o = do_allocate(o, tt)
24 properties %(SetAccess=protected)
25 %> "Time", incremented every time @c record() is called. Reset to zero if @c allocate() is called.
32 o.classtitle = 'Train-Test';
34 o.moreactions{end+1} =
'extract_datasets';
37 %> @param pars Structure with varying fields: @c .ds_test ; %c .est ; @c .clssr .
38 function o = record(o, pars) %#ok<*INUSD>
41 %> Called to
pre-allocate matrices after @c classlabels and @c rowlabels are set
42 function o = allocate(o, tt)
43 % fprintf(
'Chamando o allocate, sim\n');
45 o = o.do_allocate(tt);
51 function s = get_insane_html(o, pars)
55 %> Abstract. Generates one dataset per row, containing percentages.
56 function dd = extract_datasets(o)
60 %> Returns the default "Rate"
string. Note that the @c title property can be used.
61 function z = get_legend(o)
69 %> Returns the "default" peformance measure, to be customizable. It is "abstract" in this class (returns zero)
71 %> Note that "rate" is defined in the range 0-100, not 0-1
72 function z = get_rate(o)
77 %> Returns the unit corresponding to what it returns
as rate
78 function z = get_unit(o)
82 %> Returns format for sprintf()
83 function z = get_format(o)
Pre-processing block base class.
Analysis Session (AS) base class.