neural network - backpropagation - do program

1 view (last 30 days)
hasnan
hasnan on 7 Mar 2011
i am focusing on program of backpropagation.
i have trouble on writing a program that if,
i have 7(more than 1) inputs and 4 outputs.
what should i write?
is it same as the 1 input to 1 output program?
i have tried one..but not successful..
for example in the loading data;
X1 = [0,1,2,3,4,5]; %input X2 = [0,1,2,3,4,5]; %input X3 = X4 = X5 = X6 =
Y1 = [3,6,9,12,15]; Y2 = Y3 = Y4 =
train_inp = [X1',X2']; %setting input train_out = [Y']; %seting Out put
% check same number of patterns in each if size(train_inp,1) ~= size(train_out,1) disp('ERROR: data mismatch') return end
or, in the other parts, is it any exceptional 'additional'?

Answers (1)

mohammed
mohammed on 1 Apr 2011
Input/Output data must be Matriceslike this
Inputs = [16.0 3.0 2.0 13.0
5.0 10.0 11.0 8.0
9.0 6.0 7.0 12.0
4.0 15.0 14.0 1.0 ];

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!