IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
log_as_fsel_forward.m
Go to the documentation of this file.
1 %> @brief Log generated by a @ref as_fsel_forward
3  properties
4  %> "Number of features x grade"
5  nfxgrade;
6  end;
7 
8  methods
9  function o = log_as_fsel_forward()
10  o.classtitle = 'Forward';
11  o.moreactions = [o.moreactions, {'extract_dataset'}];
12  end;
13 
14  %> Draws in histogram shape
15  function o = draw(o, data_hint, flag_mark) %#ok<INUSD>
16  if ~exist('data_hint', 'var')
17  data_hint = [];
18  end;
19 
20  o.draw_grades(data_hint, 1);
21  o.draw_markers();
22  o.draw_finish();
23  end;
24 
25  %> Creates a dataset with one row containing the @ref nfxgrades property.
26  %>
27  %> @sa as_fsel_grades
28  function out = extract_dataset(o)
29  out = irdata();
30  out.X = o.nfxgrade(:)'; % row vector
31  out.classes = 0;
32  out.classlabels = {o.yname};
33  out.fea_x = 1:numel(o.nfxgrade);
34  out.xname = 'Number of features';
35  out.xunit = '';
36  out.yname = o.yname;
37  out.yunit = o.yunit;
38  out.title = 'Number of features X Grade';
39  out = out.assert_fix();
40  end;
41  end;
42 end
Log generated by a as_fsel_forward.
Dataset class.
Definition: irdata.m:30
Log generated by an as_fsel class.
Definition: log_as_fsel.m:2
Forward Feature Selection.
Property yname
y-axis name, defaults to 'Absorbance'
Definition: irdata.m:90
Feature Selection based on a "grades" vector.