Try a perceptron on following data.
| SAT | GPA | Essay | Performance |
Alice | 1.0 | 1.0 | 0.5 | 1.0 |
Bob | -1.0 | 1.0 | 0.5 | -1.0 |
Carrie | 1.0 | 0.0 | 0.0 | -1.0 |
Spot | -1.0 | -0.5 | -0.5 | 1.0 |
Krunch | -0.5 | 0.0 | 1.0 | ??? |
The initial weights should be as follows.
0.0 | for the constant-1 input |
0.1 | for the SAT |
0.1 | for the GPA |
-0.2 | for the essay |
Train the perceptron (using 0.1 for the training rate r)
on Alice, then Bob, then Carrie, then Spot, each exactly once in order.
List the weighted sum, the predicted label, and the updated weights
after each. Then see what the perceptron would predict for Krunch.
You might list your answer in a table, like the following.
| initial | Alice | Bob | Carrie | Spot | Krunch |
weighted sum | --- | | | | | |
predicted label | --- | | | | | |
actual label | --- | 1 | -1 | -1 | 1 | --- |
constant-1 weight | 0.0 | | | | | --- |
SAT weight | 0.1 | | | | | --- |
GPA weight | 0.1 | | | | | --- |
essay weight | -0.2 | | | | | --- |