1 % @brief Test table
using FSG and single variable.
5 %> =def_fsg(). A FSG
object
11 o.classtitle = 'Test table';
17 methods(Access=protected)
18 function out = do_use(o, data)
20 out.html = o.get_html_table(data);
21 out.title = ['Test table', data.get_description()];
26 function s = get_html_table(o, data)
29 data = data.select_features(o.idx_fea);
32 h = arrayfun(@(s) ['<td class="tdhe">', s{1},
'</td>'], data.classlabels,
'UniformOutput', 0);
34 s = cat(2, s, [
'<h1>',
'"', f.classtitle,
'" table for dataset ', data.get_description(),
'</h1>', 10, ...
35 '<p>FSG description: <b>', o.fsg.get_description(),
'</b></p>', 10, ...
36 '<table class=bo>', 10,
'<tr>', ...
37 '<td class="tdhe">class \ class</td>', strcat(h{:}),
'</tr>', 10]);
40 s = cat(2, s, [
'<tr><td class="tdle">', data.classlabels{i},
'</td>', 10]);
46 p = f.calculate_grades({1});
47 % p = vc.test(pieces(i).X(:, o.idx_fea), pieces(j).X(:, o.idx_fea)); %#ok<ASGLU>
48 s = cat(2, s, [
'<td class="tdnu">', num2str(p),
'</td>', 10]);
51 s = cat(2, s, [
'</tr>', 10]);
54 s = cat(2, s, [
'</table>', 10]);
function def_fsg_testtable(in out)
Generated by irreport, carries HTML contents.
function data_split_classes(in data, in hierarchy)
FSG - Feature Subset Grader.
function data_merge_rows(in datasets)