IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
reptt.m
Go to the documentation of this file.
1 %> @brief REPeated Train-Test
2 %>
3 %> Different behaviuors and applications implemented in descendants.
4 %>
5 %> Typically, @c block_mold and @c log_mold will contain several elements and results will be 2D or 3D log matrices.
6 %>
7 %> @sa uip_reptt.m
8 classdef reptt < as
9  properties
10  %> Cell array. Blocks to be trained-tested.
11  block_mold;
12  %> Cell array. Molds for the recording.
13  log_mold;
14  %> (Optional) Block to post-process the test data. For example, a @ref grag_classes_first.
15  postpr_test;
16  %> Block to post-process the estimation issued by the classifier. Examples:
17  %> @arg a @ref decider
18  %> @arg a @block_cascade_base consisting of a @ref decider followed by a @ref grag_classes_vote
19  postpr_est;
20  end;
21 
22 
23  properties %(SetAccess=protected)
24  %> Mounted at "runtime"
25  logs;
26  %> Mounted at "runtime"
27  blocks;
28  end;
29 
30 
31  methods
32  function o = reptt()
33  o.classtitle = 'Repeated Train-Test';
34  end;
35  end;
36 
37 
38 
39  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
40  %%%%% These are tools to be used by descendant classes
41  methods(Access=protected)
42  %> Checks validity of post_processors and boots them.
43  %>
44  %> Please note that this will pass if either or both are empty.
45  %>
46  %> These is a tool to be used by descendant classes, as required.
47  function o = boot_postpr(o)
48  % Checks if postpr_est is ok; boots the post-processors
49 
50  % Just testing if I still need to worry about booting
51 
52  if ~isempty(o.postpr_est)
53  o.postpr_est = o.postpr_est.boot();
54 % assert_decider(o.postpr_est);
55  end;
56  if ~isempty(o.postpr_test)
57  o.postpr_test = o.postpr_test.boot();
58  end;
59  end;
60  end;
61 end
Group Aggregator - Classes - Vote.
Block that resolves estimato posterior probabilities into classes.
Definition: decider.m:10
function assert_decider(in obj)
Group Aggregator - Classes - First row.
REPeated Train-Test.
Definition: reptt.m:8
Analysis Session (AS) base class.
Definition: as.m:6
Cascade block: sequence of blocks represented by a block.