1 %> @brief Extracts dataset from sovalues
4 %> ={[Inf, 0, 0], [1, 2]}
6 dimspec = {[Inf, 0, 0], [1, 2]};
9 valuesfieldname =
'rates';
14 o.classtitle = 'Extract dataset';
15 o.inputclass = {
'sovalues'};
19 methods(Access=
protected)
20 function ds = do_use(o, sov)
21 [values, ax] = sovalues.get_vv_aa(sov.values, sov.ax, o.dimspec);
24 ds.title = [sov.title, ' - ', o.valuesfieldname];
26 V = permute(sov.getYY(values, o.valuesfieldname), [3, 2, 1]);
27 [no_folds, no_tuning, no_features] = size(V);
29 ds.X = reshape(V, [no_folds*no_tuning, no_features]);
30 ds.classes = reshape(repmat(0:no_tuning-1, no_folds, 1), [no_folds*no_tuning, 1]);
31 ds.classlabels = ax(2).legends;
33 ds.fea_names = sov.ax(1).ticks;
34 ds.xname = ax(1).label;
36 ds.fea_x = ax(1).values;
37 ds.yname = labeldict(o.valuesfieldname);