IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_clssr_ann.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file
3 %> @brief Properties Window for @ref clssr_ann
4 %> @image html Screenshot-uip_clssr_ann.png
5 %>
6 %> <b>Multiple outputs</b> - see clssr_ann::flag_class2mo
7 %>
8 %> <b>Hidden layers setup</b> - see clssr_ann::hiddens
9 %>
10 %> @sa @ref clssr_ann
11 
12 %> @cond
13 function varargout = uip_clssr_ann(varargin)
14 % Last Modified by GUIDE v2.5 04-Feb-2011 14:42:06
15 
16 % Begin initialization code - DO NOT EDIT
17 gui_Singleton = 1;
18 gui_State = struct('gui_Name', mfilename, ...
19  'gui_Singleton', gui_Singleton, ...
20  'gui_OpeningFcn', @uip_clssr_ann_OpeningFcn, ...
21  'gui_OutputFcn', @uip_clssr_ann_OutputFcn, ...
22  'gui_LayoutFcn', [] , ...
23  'gui_Callback', []);
24 if nargin && ischar(varargin{1})
25  gui_State.gui_Callback = str2func(varargin{1});
26 end
27 
28 if nargout
29  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
30 else
31  gui_mainfcn(gui_State, varargin{:});
32 end
33 % End initialization code - DO NOT EDIT
34 
35 
36 
37 
38 % --- Executes just before uip_clssr_ann is made visible.
39 function uip_clssr_ann_OpeningFcn(hObject, eventdata, handles, varargin)
40 handles.output.flag_ok = 0;
41 guidata(hObject, handles);
42 gui_set_position(hObject);
43 
44 
45 % --- Outputs from this function are returned to the command line.
46 function varargout = uip_clssr_ann_OutputFcn(hObject, eventdata, handles)
47 try
48  uiwait(handles.figure1);
49  handles = guidata(hObject);
50  varargout{1} = handles.output;
51  delete(gcf);
52 catch
53  output.flag_ok = 0;
54  varargout{1} = output;
55 end;
56 
57 
58 
59 function editHidden_Callback(hObject, eventdata, handles)
60 % hObject handle to editHidden (see GCBO)
61 % eventdata reserved - to be defined in a future version of MATLAB
62 % handles structure with handles and user data (see GUIDATA)
63 
64 % Hints: get(hObject,'String') returns contents of editHidden as text
65 % str2double(get(hObject,'String')) returns contents of editHidden as a double
66 
67 
68 % --- Executes during object creation, after setting all properties.
69 function editHidden_CreateFcn(hObject, eventdata, handles)
70 % hObject handle to editHidden (see GCBO)
71 % eventdata reserved - to be defined in a future version of MATLAB
72 % handles empty - handles not created until after all CreateFcns called
73 
74 % Hint: edit controls usually have a white background on Windows.
75 % See ISPC and COMPUTER.
76 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
77  set(hObject,'BackgroundColor','white');
78 end
79 
80 
81 
82 % --- Executes on button press in pushbuttonCreate.
83 function pushbuttonCreate_Callback(hObject, eventdata, handles)
84 % hObject handle to pushbuttonCreate (see GCBO)
85 % eventdata reserved - to be defined in a future version of MATLAB
86 % handles structure with handles and user data (see GUIDATA)
87 
88 try
89  handles.output.params = {...
90  'flag_class2mo', sprintf('%d', get(handles.checkboxFlagClass2MO, 'Value') ~= 0), ...
91  'hiddens', get(handles.editHidden, 'String') ...
92  };
93  handles.output.flag_ok = 1;
94  guidata(hObject, handles);
95  uiresume();
96 catch ME
97  irerrordlg(ME.message, 'Cannot continue');
98 
99 end;
100 %>@endcond
Neural Network Classifier. This is a wrapper to MATLAB's Neural Networks Toolbox. ...
Definition: clssr_ann.m:14
function gui_set_position(in hObject)
Property flag_class2mo
whether classes must be converter into multiple-output boolean targets.
Definition: clssr_ann.m:20
Analysis Session (AS) base class.
Definition: as.m:6
function irerrordlg(in errorstring, in dlgname)
Property hiddens
= [1]. Number of neurons in each hidden layer.
Definition: clssr_ann.m:23