Professional Documents
Culture Documents
Assignment No. 03 Perceptron Learning Rule - and - Adaline - Error Surface
Assignment No. 03 Perceptron Learning Rule - and - Adaline - Error Surface
Assignment No. 03
Instructor name: Dr. Abdul Majid Due Date: 27 March 2024
It should be noted that late assignments will carry zero credit. It is recommended that you do your
assignments individually. Total points=15
Assignment No. 03
Perceptron learning rule for training of the Adaline neural network with nonlinearly
transformed inputs
x12 x0
(o) 2
X
w1(k) w1(k)
X
x1 X
w2(k)
x1 x2 v(k) y(k)
X X sgn(
w3(k)
o)
x2 X
w4(k)
x 22
(o)2 X
w5(k)
Where
The critical thresholding condition for this Adaline with nonlinearly transformed inputs occurs
when v(k) is set to zero in the above equation. This condition represents an ellipse in the two-
dimensional input vector space. By introducing the nonlinearities in the input layer, a separation
boundary is generated which is not a straight line (i.e. an elliptic separating boundary in this case).
Therefore, if the appropriate nonlinearities are chosen, the network can be trained to separate the
input space into two subspaces which are not linearly separable. In general, the Adaline with
nonlinearly transformed inputs can be trained in the same manner as the linear Adaline network.
(a) Write a computer program for training the Adaline with nonlinearly transformed inputs
given in Figure (1) to perform the logic function XOR. Use bipolar vectors as training
inputs. In your own words explain why this network structure has superior separability
properties compared to the Perceptron.
Question 2
Consider a separation problem shown in Figure (2) below. It should be obvious that the circles
and squares are not linearly separable.
+1
1.0
1
0.5
0.
5
1.
0
(a) Write a computer program implementing an Adaline with nonlinearly transformed inputs,
trained with LMS algorithm.
(b) Use your program to separate the circles and squares given in Figure (2).
Question 3
Consider a set of two-dimensional vectors X defined as having components in the ranges
, and . Train the Adaline neural network with nonlinearly transformed
inputs given in question no. 1, to perform the following classification:
X is classified as 1 if ; otherwise, X is classified as 0.
Write a program, may be in MATLAB/python using Perceptron learning rule under the following
instructions
Write codes related to Adaline net Transversal filter used for Echo-Suppression. In this first part,
you will show how echo can affect the signal on a communication channel.
In the 2nd part, you will show how Adaline can used an error surface adaptive filter to cancel out
the noise in the incoming signal. You will show how the gradient descent works on the error
surface.