IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
report_log_gridsearch.m
Go to the documentation of this file.
1 %> @brief Shows best parameters at each
3  properties
4  end;
5 
6  methods
7  function o = report_log_gridsearch()
8  o.classtitle = 'Grid Search Log Report';
9  o.inputclass = 'log_gridsearch';
10  o.flag_params = 0;
11  end;
12  end;
13 
14  methods(Access=protected)
15  function out = do_use(o, log)
16  out = log_html();
17  out.html = ['<h1>', log.title, '</h1>', 10, o.get_reportbody(log)];
18 % out.title = log.get_description();
19  end;
20  end;
21 
22 
23  methods
24  %> Generates a table with the best in each architecture, with its respective time and confidence interval
25  %> @param sov sovalues object
26  function s = get_reportbody(o, log)
27  s = '';
28  vv = log.sovaluess;
29  n = numel(vv);
30  for i = 1:n
31  r =vv(i);
32  ch = r.chooser;
33  coords = ch.use(r.values);
34  rr = r.values(coords{:}).rates;
35  s = cat(2, s, '<p>', r.title, sprintf(' (<font color=blue>classification rate: %.4g%% &plusmn; %.4g%%</font>)', ...
36  mean(rr), std(rr)), ...
37  '</p>', 10, '<ul>', 10); % This is supposed to contain the iteration and move indexes
38  for j = 1:numel(coords)
39  s = cat(2, s, '<li>', r.ax(j).legends{coords{j}}, '</li>', 10);
40  end;
41  s = cat(2, s, '</ul>');
42  end;
43  end;
44  end;
45 end
Log generated by a gridsearch.
Definition: log_gridsearch.m:2
Property title
Definition: irobj.m:38
Shows best parameters at each.
Generated by irreport, carries HTML contents.
Definition: log_html.m:2
Report base class.
Definition: irreport.m:8