Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 . Consider the neuron on the left with three inputs. The plot of the activation function of the neuron is given on the right.

2. Consider the neuron on the left with three inputs. The plot of the activation function of the neuron is given on the right. More precisely,
0.
v<-0.5
}
+0.5,
-0.5
v0.5
f(v)=
1,
>0.5
(a) Suppose the error at the output is defined as E =1(to) where t is the target output. Derive the weight update equations for this neuron using the gradient descent method.
(b) Write a program to train this neuron such that it evaluates the function (21 AND 22) OR 23. Note that in this problem you are not restricted to use the McCulloch-Pitts neuron. In fact, you will train the network to find the weights. In your program, you should
i. initialize the weights randomly,
ii. use the weight update equations you derived in part (a).
iii. stop the iterations when the error drops below the "machine epsilon" (in MATLAB, it is denoted by the constant eps.).
Report the resulting values of the weights. How does the learning rate affect the convergence? Try different values and discuss.
(c) Since there are three inputs, they can be visualized in 3D space. Plot the input points and the discriminant corresponding to the weights you found in part (b), and explain how this problem can be interpreted as a linear discriminant problem separating two sets of points.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

2. Do you find change a. invigorating? b. stressful? _______

Answered: 1 week ago

Question

10. Are you a. a leader? b. a follower? _______

Answered: 1 week ago