Algorithm & Solved Example - ADALINE
Algorithm & Solved Example - ADALINE
the data which consist of three types of layer i.e input layer, the hidden layer, and the output
layer. The basic neural network contains only two layers which are the input and output layers.
The layers are connected with the weighted path which is used to find net input data. In this
section, we will discuss two basic types of neural networks Adaline which doesn’t have any
hidden layer, and Madaline which has one hidden layer.
Weights between the input unit and output unit are adjustable.
The learning rule is found to minimize the mean square error between activation and target
values. Adaline consists of trainable weights, it compares actual output with calculated
output, and based on error training algorithm is applied.
Workflow:
Adaline
First, calculate the net input to your Adaline network then apply the activation function to its
output then compare it with the original output if both the equal, then give the output else send
an error back to the network and update the weight according to the error which is calculated
by the delta learning rule.
Architecture:
Adaline
In Adaline, all the input neuron is directly connected to the output neuron with the weighted
connected path. There is a bias b of activation function 1 is present.
Implementations
1 1 1
1 -1 1
-1 1 1
-1 -1 -1
(when x1=x2=1)
Now compute, (t-yin)=(1-0.3)=0.7
Now, update the weights and bias
-
-1 1 1 0.087 0.913 0.0913 0.0913 0.1617 0.1783 0.3443 0.83
0.0913
- - -
-1 -1 0.0043 0.1004 0.1004 0.2621 0.2787 0.2439 1.01
1 1.0043 0.1004
This is epoch 1 where the total error is 0.49 + 0.69 + 0.83 + 1.01 = 3.02 so more epochs
will run until the total error becomes less than equal to the least squared error i.e 2.