Skip to content

Commit

Permalink
fixed some errors in the example descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
yabata committed Nov 14, 2016
1 parent dbdf1fe commit ec4db9e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion doc/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ Then the neural network is created. Since we have a system with 3 inputs and 2 o

.. code-block:: matlab
nn = [3 4 4 2];
nn = [3 5 5 2];
dIn = [0];
dIntern=[];
dOut=[1];
Expand Down
8 changes: 4 additions & 4 deletions matlab/examples/example_compair.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
%%
%Create NN

%create recurrent neural network with 1 input, 2 hidden layers with
%3 neurons each and 1 output
%create recurrent neural network with 3 inputs, 2 hidden layers with
%5 neurons each and 3 outputs
%the NN uses the input data at timestep t-1 and t-2
%The NN has a recurrent connection with delay of 1,2 and 3 timesteps from the output
% to the first layer (and no recurrent connection of the hidden layers)
nn = [3 4 4 2];
nn = [3 5 5 2];
dIn = [0];
dIntern=[];
dOut=[1];
net = CreateNN(nn,dIn,dIntern,dOut); %alternative: net = CreateNN([3,4,4,2],[0],[],[1]);
net = CreateNN(nn,dIn,dIntern,dOut); %alternative: net = CreateNN([3,5,5,2],[0],[],[1]);

%%
%Train with LM-Algorithm
Expand Down
4 changes: 2 additions & 2 deletions matlab/examples/example_narendra4.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%%
u%%
%Read Example Data
file = 'example_data.xlsx';
num = xlsread(file,'narendra4');
Expand All @@ -17,7 +17,7 @@
%the NN uses the input data at timestep t-1 and t-2
%The NN has a recurrent connection with delay of 1,2 and 3 timesteps from the output
% to the first layer (and no recurrent connection of the hidden layers)
nn = [1 2 2 1];
nn = [1 3 3 1];
dIn = [1,2];
dIntern=[];
dOut=[1,2,3];
Expand Down
6 changes: 3 additions & 3 deletions matlab/examples/example_using_P0Y0_compair.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
%%
%Create NN

%create recurrent neural network with 1 input, 2 hidden layers with
%3 neurons each and 1 output
%create recurrent neural network with 3 inputs, 2 hidden layers with
%5 neurons each and 2 outputs
%the NN uses the input data at timestep t-1 and t-2
%The NN has a recurrent connection with delay of 1,2 and 3 timesteps from the output
% to the first layer (and no recurrent connection of the hidden layers)
nn = [3 5 5 2];
dIn = [0];
dIntern=[];
dOut=[1];
net = CreateNN(nn,dIn,dIntern,dOut); %alternative: net = CreateNN([3,4,4,2],[0],[],[1]);
net = CreateNN(nn,dIn,dIntern,dOut); %alternative: net = CreateNN([3,5,5,2],[0],[],[1]);

%%
%Train with LM-Algorithm
Expand Down
2 changes: 1 addition & 1 deletion matlab/examples/example_using_P0Y0_narendra4.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
%the NN uses the input data at timestep t-1 and t-2
%The NN has a recurrent connection with delay of 1,2 and 3 timesteps from the output
% to the first layer (and no recurrent connection of the hidden layers)
nn = [1 2 2 1];
nn = [1 3 3 1];
dIn = [1,2];
dIntern=[];
dOut=[1,2,3];
Expand Down

0 comments on commit ec4db9e

Please sign in to comment.