-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathresources.m
More file actions
69 lines (66 loc) · 2.64 KB
/
resources.m
File metadata and controls
69 lines (66 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
function value = resources(ID)
%RESOURCES Provides configuration values for the MLP training and testing GUI programs.
%
% This program is a lookup table for parameters used by the training and
% testing GUI programs. This allows the GUIs to be customized for
% different kinds of training methods needing different user interface
% elements.
%
% Parameter definitions:
% 'Info' : Returns information about the training algorithm
% 'TrainTitle' : Returns the title of the training program
% 'TestTitle' : Returns the title of the testing program
% 'N' : Returns the label for the N parameter
% 'M' : Returns the label for the M parameter
% 'Nh' : Returns the label for the Nh parameter
% 'Nit' : Returns the label for the Nit parameter
% 'weights_file' : Returns the filename to use for the weights file
%
% Some algorithms do not need a separate validation file. The validation
% file row can be removed using the 'DisableValidation' flag.
%
% For an algorithm that only runs on classification or regression types,
% the radio button giving this choice can be removed and pre-set.
%
% The default layoutis N, M, Nh, Nit. One more parameter can be added with
% the 'Extra' and 'ExtraValue' settings.
% See also RUN_TRAINING, RUN_TESTING.
% Rohit Rawat (rohitrawat@gmail.com), 08-23-2015
% $Revision: 1 $ $Date: 23-Aug-2015 15:50:31 $
switch(ID);
case 'Info'
value = {'MLP Training Program',
'',
'Algorithm: MOLF-ADAPT',
'',
'Author: Rohit Rawat & Jignesh Patel',
'',
'http://www.uta.edu/faculty/manry/'};
case 'TrainTitle'
value = 'MLP Training Program';
case 'TestTitle'
value = 'MLP Testing Program';
case 'CodeDirectory'
value = 'hwo_molf_pruning';
case 'N' % Row 4
value = 'Inputs (N)';
case 'M' % Row 5
value = 'Outputs/Classes (M)';
case 'Nh' % Row 6
value = 'Hidden Units (Nh)';
case 'Nit' % Row 7
value = 'Training Iterations (Nit)';
case 'weights_file'
value = 'weights.txt';
% Advanced settings: Do not modify unless you know what you are doing!
case 'DisableValidation' % Disables Row 2
value = false; % leave false. if true, validation file cannot be specified.
case 'FixedType' % Disables Row 3
value = 0; % 0: user chooses file type, 1: fixed regression, 2: fixed classification
case 'Extra' % Row 8
value = ''; % leave empty '', otherwise set to what the Extra input should be called
case 'ExtraValue'
value = 1; % set to what the Extra input should be pre-loaded with
otherwise
value = 'Undefined!';
end