IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
def_sgs.m
Go to the documentation of this file.
1 %>@ingroup idata globals
2 %> @file
3 %> @brief Returns the default SGS
4 %> @sa more_assert.m, setup_write.m
5 %
6 %> @param out If passed, returns it; otherwise, returns a default object
7 function out = def_sgs(out)
8 if nargin == 0 || isempty(out)
9  irverbose('INFO: Default SGS: 10-fold cross-validation');
10  out = sgs_crossval();
11  out.no_reps = 10;
12  out.flag_group = 1;
13  out.randomseed = 0;
14  out.flag_perclass = 0;
15 end;
function irverbose(in s, in level)
function more_assert()
K-Fold Cross-Validation.
Definition: sgs_crossval.m:6
function def_sgs(in out)
function setup_write()