![]() |
IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
|
Feature subset grader - Fisher's score: between-class variance divided by within-class variance
Duda et al 2001, Pattern Classification
Definition at line 5 of file fsg_test_fisher.m.
Public Member Functions | |
function | fsg_test_fisher (in o) |
function set | data (in o, in data) |
function | get_yname (in o) |
function | get_yunit (in o) |
function | boot (in o) |
Assigns the subddd property. More... | |
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 | 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 | test (in o, in dd, in idxs) |
function | do_calculate_pairgrades (in o, in idxs) |
If sgs is set, performs cross-validation loop based on subddd , otherwise used datasets to test. More... | |
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_test_fisher::fsg_test_fisher | ( | in | o | ) |
|
inherited |
Assigns the subddd property.
|
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 |
|
protectedinherited |
If sgs
is set, performs cross-validation loop based on subddd
, otherwise used datasets
to test.
|
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.
|
inherited |
|
inherited |
|
protectedinherited |
|
inherited |
Sets several properties of an object at once.
o | |
params | Cell followint the pattern{'property1', value1, 'property2', value2, ...} |
|
protected |
|
protectedinherited |
|
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
|
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 |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |