Question: Problem 5 ( 2 0 Points ) : Implementation of the Perceptron Algorithm In this problem, we will implement the Perceptron algorithm on synthetic training

Problem 5(20 Points): Implementation of the Perceptron Algorithm
In this problem, we will implement the Perceptron algorithm on synthetic training data.
1.5 Points. Suppose that the data dimension d =2. Generate two classes of data points with 100
points each, by sampling from Gaussian distributions centered at (0.5,0.5) and (0.5,0.5). Choose the
variance of the Gaussian to be small enough so that the data points are sufficiently well separated.
2.10 Points. Implement the Perceptron algorithm as discussed in class. Choose the initial weights to be
zero, the maximum number of epochs as T =100, and the learning rate \alpha =1. How quickly does your
implementation converge?
3.5 Points. Now, repeat the above experiment with a second synthetic dataset; this time, increase the
variance of the Gaussians such that the generated data points from different classes now overlap. What
happens to the behavior of the algorithm?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!