3 %> @brief Properties Window
for K-Fold Cross-validation (@ref
sgs_crossval)
7 %> @image html Screenshot-uip_sgs_crossval.png
11 %> <b>K-Fold
's "K"</b> - see sgs_crossval::no_reps
13 %> @sa sgs_crossval, uip_sgs.m, sgs
16 function varargout = uip_sgs_crossval(varargin)
17 % Last Modified by GUIDE v2.5 04-Feb-2011 14:06:16
19 % Begin initialization code - DO NOT EDIT
21 gui_State = struct('gui_Name
', mfilename, ...
22 'gui_Singleton
', gui_Singleton, ...
23 'gui_OpeningFcn
', @uip_sgs_crossval_OpeningFcn, ...
24 'gui_OutputFcn
', @uip_sgs_crossval_OutputFcn, ...
25 'gui_LayoutFcn
', [] , ...
27 if nargin && ischar(varargin{1})
28 gui_State.gui_Callback = str2func(varargin{1});
32 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
34 gui_mainfcn(gui_State, varargin{:});
36 % End initialization code - DO NOT EDIT
39 % --- Executes just before uip_sgs_crossval is made visible.
40 function uip_sgs_crossval_OpeningFcn(hObject, eventdata, handles, varargin)
41 handles.output.flag_ok = 0;
42 guidata(hObject, handles);
43 gui_set_position(hObject);
45 % --- Outputs from this function are returned to the command clae.
46 function varargout = uip_sgs_crossval_OutputFcn(hObject, eventdata, handles)
48 uiwait(handles.figure1);
49 handles = guidata(hObject);
50 varargout{1} = handles.output;
55 varargout{1} = output;
58 function editReg_Callback(hObject, eventdata, handles)
60 % --- Executes during object creation, after setting all properties.
61 function editReg_CreateFcn(hObject, eventdata, handles)
62 if ispc && isequal(get(hObject,'BackgroundColor
'), get(0,'defaultUicontrolBackgroundColor
'))
63 set(hObject,'BackgroundColor
','white
');
66 % --- Executes on button press in pushbuttonOk.
67 function pushbuttonOk_Callback(hObject, eventdata, handles)
71 handles.output.params = [other.params, {...
72 'flag_loo
', int2str(get(handles.checkbox_flag_loo, 'Value
')), ...
73 'no_reps
', num2str(eval(get(handles.edit_no_reps, 'String
'))) ...
75 handles.output.flag_ok = 1;
76 guidata(hObject, handles);
80 irerrordlg(ME.message, 'Cannot
continue');
84 % --- Executes on button press in checkbox_flag_loo.
85 function checkbox_flag_loo_Callback(hObject, eventdata, handles)
87 function edit_no_reps_Callback(hObject, eventdata, handles)
89 % --- Executes during object creation, after setting all properties.
90 function edit_no_reps_CreateFcn(hObject, eventdata, handles)
91 if ispc && isequal(get(hObject,'BackgroundColor
'), get(0,'defaultUicontrolBackgroundColor
'))
92 set(hObject,'BackgroundColor
','white
');
Property flag_loo
=0. Whether leave-one-out or K-fold.