DWDM Unit4-2
DWDM Unit4-2
DWDM Unit4-2
Input:
• D, a data set consisting of the training tuples and their associated target values;
• l, the learning rate;
• network, a multilayer feed-forward network.
Output: A trained neural network.
Method
Initialize the weights: The weights in the network are initialized to small random
numbers (e.g., ranging from -1.0 to 1.0, or -0.5 to 0.5). Each unit has a bias associated
with it, as explained later. The biases are similarly initialized to small random numbers.
Each training tuple, X, is processed by the following steps.
Propagate the inputs forward: First, the training tuple is fed to the network’s input
layer. The inputs pass through the input units, unchanged. That is, for an input unit, j,
its output, Oj , is equal to its input value, Ij . Next, the net input and output of each unit
in the hidden and output layers are computed.
Hidden or output layer unit j: The inputs to unit j are outputs from the previous layer.
These are multiplied by their corresponding weights to form a weighted sum, which is
added to the bias associated with unit j. A nonlinear activation function is applied to
the net input. (For ease of explanation, the inputs to unit j are labelled y1, y2, ….. , yn.
If unit j were in the first hidden layer, then these inputs would correspond to the input
tuple (x1, x2, …. , xn).)