-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtraining_program_interface_MLP.m
More file actions
22 lines (20 loc) · 994 Bytes
/
training_program_interface_MLP.m
File metadata and controls
22 lines (20 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function [E_t_best E_v_best] = training_program_interface(training_file, N, M, Nh, Nit, validation_file, file_type, Extra)
%TRAINING_PROGRAM_INTERFACE Wrapper for the training program.
%
% This program is a wrapper for the real training program. It receives
% input from the GUI and uses them to call the training code. This allows
% the same GUI to be used with different kinds of training algorithms by
% simply modifying this file.
%
% See also RESOURCES, RUN_TRAINING.
% Rohit Rawat (rohitrawat@gmail.com), 08-23-2015
% $Revision: 1 $ $Date: 23-Aug-2015 15:50:31 $
E_t_best = NaN;
E_v_best = NaN;
if(file_type == 1)
% call the program for regression case here:
[E_t_best E_v_best Nh_best Nit_best Wi_best Wo_best lambda] = mlp_TRAIN(training_file, N, M, Nh, Nit, validation_file);
else
% call the program for classification case here:
[E_t_best E_v_best Nh_best Nit_best Wi_best Wo_best lambda] = mlp_TRAIN_CLASS(training_file, N, M, Nh, Nit, validation_file);
end