IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
as_grades_fsg.m
Go to the documentation of this file.
1 %> @brief Calculates grades using a Feature Subset Grader (FSG) object
3  properties
4  %> Feature Subset Grader (FSG) object
5  fsg;
6  end;
7 
8  methods
9  function o = as_grades_fsg()
10  o.classtitle = 'Using FSG';
11  end;
12  end;
13 
14  methods(Access=protected)
15  function out = do_use(o, data)
16  da1 = data(1);
17  idxs = num2cell(1:da1.nf);
18  o.fsg.data = da1;
19  o.fsg = o.fsg.boot();
20  gradestemp = o.fsg.calculate_grades(idxs);
21 
22  out = log_grades();
23  out.grades = gradestemp(:, :, 1); % It is possible that an SGS object in the FSG will have 3 or more bites
24  out.fea_x = da1.fea_x;
25  out.xname = da1.xname;
26  out.xunit = da1.xunit;
27  out.yname = o.fsg.classtitle;
28  out.yunit = '';
29  end;
30  end;
31 end
Calculates grades using a Feature Subset Grader (FSG) object.
Definition: as_grades_fsg.m:2
Analysis Session that outputs a log_grades.
Definition: as_grades.m:2
Generated by a as_grades object, carries a "grades" vector; usually.
Definition: log_grades.m:2
FSG - Feature Subset Grader.
Definition: fsg.m:6