1 %> @brief Histograms and biomarkers comparison
using various @ref
subsetsprocessor objects
3 %> Accessible from
objtool, but not configurable at the moment (will use property defaults).
13 %> =1. Whether to plot the histograms
22 o.classtitle = 'Comparison between SSPs';
29 methods(Access=protected)
30 function out = do_use(o, log)
32 s = ['<h1>', o.classtitle, '</h1>'];
33 out.html = [s, o.get_html_graphics(log)];
34 out.title = log.get_description();
40 %> Generates a table with the best in each architecture, with its respective time and confidence interval
41 %> @param log a solog_merger_fhg
object
42 function s = get_html_graphics(o, log)
44 if isempty(o.subsetsprocessors)
47 ssps = o.subsetsprocessors;
49 hists = o.get_hists(log, ssps);
54 log.draw_stackedhist_for_legend();
56 s = cat(2, s, o.save_n_close([], 0, []));
62 hist.draw_stackedhists(o.ds_hint, {[], .8*[1 1 1]},
def_peakdetector(o.peakdetector));
66 % % % % set(gca,
'color', 1.15*[0.8314 0.8157 0.7843]);
67 set(gca,
'Outerposition', [-0.1121 0.0502 1.2188 0.9498]);
71 % % % % set(gcf,
'InvertHardCopy',
'off'); % This is apparently needed to preserve the gray background
72 % % % % set(gcf,
'color', [1, 1, 1]);
73 s = cat(2, s, o.save_n_close());
77 %---> Biomarkers comparison table
79 s = cat(2, s,
'<h2>Biomarkers comparison table of histograms above</h2>', 10); %bc.get_description(),
'</h2>');
80 [M, titles] = o.get_biocomparisontable(hists);
81 s = cat(2, s,
'<center>',
html_table_std_colors(round(M*1000)/1000, [], titles, titles,
'\', 0.5, 1, 4),
'</center>', 10);
84 % Reports the objects used
85 s = cat(2, s,
'<h2>Subsets processors used</h2>');
89 s = cat(2, s,
'<p><b>', obj.get_description,
'</b></p>', 10,
'<pre>', obj.get_report(),
'</pre>', 10);
91 s = cat(2, s,
'<hr />', 10);
96 function hists = get_hists(o, log, ssps)
101 hists(i) = ssp.use(log); %#ok<*AGROW>
102 hists(i).title = ssp.title;
107 %> Generates a matrix of item-wise Biomarkers Coherence Indexes
111 %> @
return [M, titles]
112 function [M, titles] = get_biocomparisontable(o, hists)
119 pd = pd.boot(hist.fea_x, hist.grades);
120 % Collects biomarkers
121 pdidxs = pd.use([], hist.grades);
122 wnss{i} = hist.fea_x(pdidxs);
123 weightss{i} = hist.grades(pdidxs);
124 titles{i} = hist.title;
131 [matches, index] = bc.go(wnss{i}, wnss{j}, weightss{i}, weightss{j}); %#ok<ASGLU>
142 function a = get_defaultsubsetsprocessors()
Generated by subsetsprocessor, carries a histogram.
function maximize_window(in h, in aspectratio, in normalizedsize)
Histograms and biomarkers comparison using various subsetsprocessor objects.
function def_peakdetector(in out)
function show_legend_only()
function html_table_std_colors(in M, in S, in rowlabels, in collabels, in cornerstr, in minimum, in maximum, in pow)
Generated by fselrepeater, carries subsets of features.
function replace_underscores(in s)
Generated by irreport, carries HTML contents.
function def_subsetsprocessors()
function def_biocomparer(in out)
Processor of a set of subsets of features.
Base for all reports that operate on a soitem object.
function make_axis_gray()