Lecture 3 - MATLAB Representation of Neural Network
Lecture 3 - MATLAB Representation of Neural Network
Qadri Hamarsheh
Introduction:
Neural Network topologies (Typical Architectures)
The single-layer and multilayer nets.
feedforward and recurrent net:
o In a feedforward network each neuron in one layer has only directed
connections to the neurons of the next layer (towards the output layer).
o Recurrent networks contain feedback connections.
Feedforward Neural Network
Feedforward contains:
o One input layer,
o n hidden processing layers (invisible from the outside, that’s why the
neurons are also referred to as hidden neurons)
o One output layer.
Every neuron is connected to all neurons of the next layer (these layers are
called completely linked).
Single-Layer Net
The units can be
distinguished as input units, which
receive signals from the outside
world, and output units, from
which the response of the net can
be read. A one-layer network,
with R input elements and S
neurons, is shown below.
In this network:
Each element of the input
vector p is connected to each
neuron input through the weight
matrix W.
In MATLAB, the S-neuron, R-
input, one-layer network also can
be drawn in abbreviated notation
1
Dr. Qadri Hamarsheh
Note that the row indices on the elements of matrix W indicate the
destination neuron of the weight, and the column indices indicate which
source is the input for that weight.
A single-layer network of S logsig neurons having R inputs is shown below
in full detail on the left and with a layer diagram on the right.
2
Dr. Qadri Hamarsheh
3
Dr. Qadri Hamarsheh
We will use superscripts to identify the source (second index) and the
destination (first index) for the various weights and other elements of the
network.
4
Dr. Qadri Hamarsheh
Example 1:
Multiple Layers of Neurons (Three-Layer Network, Abbreviated Notation)
5
Dr. Qadri Hamarsheh
Example 3: