![]() |
IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
|
FSG that uses classifier to grade the subsets.
The grades are classification rates expressed in percentages (from 0 to 100)
If not using SGS, must assign a 2-dataset vector to data
Definition at line 8 of file fsg_clssr.m.
Public Member Functions | |
function | get_yname (in o) |
function | get_yunit (in o) |
function | boot (in o) |
function | fsg_clssr () |
function set | data (in o, in data) |
function | calculate_grades (in o, in idxs) |
function | get_description (in o, in flag_short) |
function | setbatch (in o, in params) |
Sets several properties of an object at once. More... | |
function | get_methodname (in o, in flag_short) |
function | get_report (in o) |
Object reports are plain text. HTML would be cool but c'mon, we don't need that sophistication. More... | |
function | get_html (in o, in flag_stylesheet) |
function | get_params (in o, in data) |
Calls Parameters GUI. More... | |
function | extract_log (in o) |
function | get_ancestry (in o, in flag_title) |
Public Attributes | |
Property | clssr |
Property | estlog |
Property | postpr_test |
(Optional) Block to post-process the test data. For example, a grag_classes_first. More... | |
Property | postpr_est |
Property | f_aggr |
=. Function pointer to aggregate a vector of pairwise grades. As seen, the default behaviour is taking the least grade obtained among all pairwise gradings. More... | |
Property | sgs |
SGS object. If set,. More... | |
Property | fext |
Property | data |
Property | title |
Property | color |
Protected Member Functions | |
function | do_calculate_pairgrades (in o, in idxs) |
function | reset (in o) |
function | do_get_report (in o) |
Default report. More... | |
function | do_get_html (in o) |
Abstract. HTML inner body. More... | |
Protected Attributes | |
Property | flag_pairwise |
=0; More... | |
Property | flag_univariate |
=0; More... | |
Property | grade |
Property | subddd |
Assigned by prepare(). This is a cell vector of Cell of matrices of irdata datasets. More... | |
Property | flag_sgs |
Prepared. More... | |
Property | flag_booted |
Property | pvt_flag_pairwise |
The algorithm is clever enough to go non-pairwise mode if flag_pairwise is TRUE but the dataset has less than three classes. More... | |
Property | datasets |
Property | classtitle |
Class Title. Should have a descriptive name, as short as possible. More... | |
Property | short |
Short for the method name. More... | |
Property | flag_params |
Property | flag_ui |
(GUI setting) Whether to "publish" in blockmenu and datatool. Note that a class can be "published" without a GUI (set flag_params=0 in this case, at the class constructor). More... | |
Property | moreactions |
(GUI setting) String cell containing names of methods that may be called from the GUIs More... | |
function fsg_clssr::fsg_clssr | ( | ) |
function fsg_clssr::boot | ( | in | o | ) |
Couple of checks
|
inherited |
May return one grade or a vector thereof
idxs | May be either: a cell of feature subsets; or a vector of feature indexes. Developers please note that it is the end class responsibility to give proper treatment to this. The option is left open for speed, as there is no point in using a cell in univariate cases. |
|
inherited |
|
protected |
Cross-validation is performed here. return a (no_pairs)x(no_idxs)x(no_test_sets) grades vector
|
protectedinherited |
Abstract. HTML inner body.
|
protectedinherited |
Default report.
|
inherited |
o |
|
inherited |
o | |
flag_title=1 |
|
inherited |
Returns description string
Precedence according with flag_short:
flag_short=0 | I am sealing this to make sure that no class will try to improvise on this function. |
|
inherited |
flag_stylesheet=1 | Whether to include the stylesheet in the HTML |
|
inherited |
This is used only to compose sequence string e.g. xxx->yyy->zzz
flag_short=0 |
|
inherited |
Calls Parameters GUI.
If flag_params
, tries uip_<class>.m. If fails, tries uip_<ancestor>.m and so on
|
inherited |
Object reports are plain text. HTML would be cool but c'mon, we don't need that sophistication.
function fsg_clssr::get_yname | ( | in | o | ) |
function fsg_clssr::get_yunit | ( | in | o | ) |
|
protectedinherited |
|
inherited |
Sets several properties of an object at once.
o | |
params | Cell followint the pattern{'property1', value1, 'property2', value2, ...} |
|
protectedinherited |
Property fsg_clssr::clssr |
Definition at line 13 of file fsg_clssr.m.
|
inherited |
|
protectedinherited |
Assigned by set_data()
If not pairwise (see flag_pairwise), data
will be assigned to datasets.
If pairwise, datasets will be a matrix of dimensions (number of pairs)x(numel(data))
Why one would pass a more-than-one-element dataset through data
depends on the behaviour of a particular fsg descendant. For instance a two-element vector could be a train-test pair.
Please note that
Property fsg_clssr::estlog |
Definition at line 15 of file fsg_clssr.m.
|
inherited |
|
inherited |
Some trainable block for convenience. This can be used to pass a pre_std so that it doesn't have to be part of the classifier itself. This block typically is trainable and treats the features independently. Having it as part of the classifier would result in unnecessary repetition of the same operation.
|
protectedinherited |
=1. (GUI setting) Whether to call a GUI when the block is selected in blockmenu.m . If true, a routine called "uip_"<class name> will be called.
|
protectedinherited |
|
protectedinherited |
Property fsg_clssr::postpr_est |
Block to post-process the estimation issued by the classifier. Examples:
Definition at line 23 of file fsg_clssr.m.
Property fsg_clssr::postpr_test |
(Optional) Block to post-process the test data. For example, a grag_classes_first.
Definition at line 18 of file fsg_clssr.m.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |