4 %> @image html Screenshot-uip_clssr_tree.png
17 function varargout = uip_clssr_tree(varargin)
18 % Last Modified by GUIDE v2.5 03-Sep-2011 16:21:11
20 % Begin initialization code - DO NOT EDIT
22 gui_State =
struct(
'gui_Name', mfilename, ...
23 'gui_Singleton', gui_Singleton, ...
24 'gui_OpeningFcn', @uip_clssr_tree_OpeningFcn, ...
25 'gui_OutputFcn', @uip_clssr_tree_OutputFcn, ...
26 'gui_LayoutFcn', [] , ...
28 if nargin && ischar(varargin{1})
29 gui_State.gui_Callback = str2func(varargin{1});
33 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
35 gui_mainfcn(gui_State, varargin{:});
37 % End initialization code - DO NOT EDIT
40 % --- Executes just before uip_clssr_tree is made visible.
41 function uip_clssr_tree_OpeningFcn(hObject, eventdata, handles, varargin)
42 handles.output.flag_ok = 0;
43 guidata(hObject, handles);
47 % --- Outputs from this function are returned to the command clae.
48 function varargout = uip_clssr_tree_OutputFcn(hObject, eventdata, handles)
50 uiwait(handles.figure1);
51 handles = guidata(hObject);
52 varargout{1} = handles.output;
57 varargout{1} = output;
61 %############################################
64 function refresh(handles)
68 %
############################################
69 %############################################
71 % --- Executes on button press in pushbuttonOK.
72 function pushbuttonOK_Callback(hObject, eventdata, handles)
79 ss = get(handles.popupmenu_pruningtype, 'String');
80 stype = ss{
get(handles.popupmenu_pruningtype,
'Value')};
81 spruningtype = stype(1); %
83 handles.output.params = {...
85 'pruningtype', spruningtype, ...
86 'no_levels_max', int2str(eval(
get(handles.edit_no_levels_max,
'String'))), ...
87 'chi2threshold', int2str(eval(
get(handles.edit_chi2threshold,
'String'))) ...
89 handles.output.flag_ok = 1;
90 guidata(hObject, handles);
97 function popupmenu_fsgt_Callback(hObject, eventdata, handles)
99 function popupmenu_fsgt_CreateFcn(hObject, eventdata, handles)
100 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
101 set(hObject,'BackgroundColor','white');
104 function edit_no_levels_max_Callback(hObject, eventdata, handles)
106 function edit_no_levels_max_CreateFcn(hObject, eventdata, handles)
107 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
108 set(hObject,'BackgroundColor','white');
111 function edit_chi2threshold_Callback(hObject, eventdata, handles)
113 function edit_chi2threshold_CreateFcn(hObject, eventdata, handles)
114 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
115 set(hObject,'BackgroundColor','white');
118 function popupmenu_pruningtype_Callback(hObject, eventdata, handles)
120 function popupmenu_pruningtype_CreateFcn(hObject, eventdata, handles)
121 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
122 set(hObject,'BackgroundColor','white');
Binary Decision Tree Classifier.
function listbox_get_selected_1stname(in h_listbox)
Property no_levels_max
=10 . Maximum number of levels. The number of nodes is 2^(numberOfLevels)-1
Property fsgt
=fsgt_infgain(). FSGT object to obtain the feature to be used at each node.
function listbox_load_from_workspace(in classname, in h_list, in flag_blank, in string_empty, in input)
function gui_set_position(in hObject)
Property chi2threshold
Chi-squared test threshold for pruningtype = 3. 0 - no pruning; 10 - heavy pruning.
function irerrordlg(in errorstring, in dlgname)
Property pruningtype
=1 . Pruning type: 0 - no pruning; 1 - maximum number of levels; 2 - backward pruning; 3 - Quinan's c...