edX MIT MIDTERM EXAM
Question 1(1) in TEXT:
Find me solution to the following two sub question after understanding the main question
and data given in table with explanation to prove it right:
Question:
What is the number of mistakes made by the linear perceptron algorithm on each point,
given that we initialize the parameters to all zero values and run the algorithm through these
points in a particular order until convergence?
Table of Data:
| Label | Coordinates | Perceptron Mistakes |
|-------|-------------|---------------------|
| -1 | (0,0) |1 |
| -1 | (2,0) |9 |
| -1 | (3,0) | 10 |
| -1 | (0,2) |5 |
| -1 | (2,2) |9 |
| +1 | (5,1) | 11 |
| +1 | (5,2) |0 |
| +1 | (2,4) |3 |
| +1 | (4,4) |1 |
| +1 | (5,5) |1 |
1. What is the resulting offset parameter theta_0?
Enter the numerical value for theta_0
Theta_0 :______________
2. What is the resulting parameter theta?
(Enter theta as a vector, e.g. type [0,1] if theta = [0 1]^T.)
Theta: ______________
Question 1.2. in TEXT:
Question:
We initialize the parameters to all zero values and run the linear perceptron algorithm
through these points in a particular order until convergence. The number of mistakes made
on each point are shown in the table below.
Table of data:
| Label | Coordinates | Perceptron Mistakes |
|-------|-------------|---------------------|
| -1 | (0,0) |1 |
| -1 | (2,0) |9 |
| -1 | (3,0) | 10 |
| -1 | (0,2) |5 |
| -1 | (2,2) |9 |
| +1 | (5,1) | 11 |
| +1 | (5,2) |0 |
| +1 | (2,4) |3 |
| +1 | (4,4) |1 |
| +1 | (5,5) |1 |
The mistakes that the algorithm makes often depend on the order in which the points were
considered. Could the point (5,2) labeled +1 have been the first one considered?
○ yes
○ no
○ depends
END