-- Practice Midterm 1 Solutions
3.
Perceptron update rule
- Correct: Do Nothing
- False Positive: w = w-x, theta = theta+1
- False Negative: w = w+x, theta = theta-1
given:
- w = [1,2,3] theta = 1;
- x [1,1,1] false positive example
update weights
- w = [1,2,3] - [1,1,1] = [0,1,2]
- theta = 1+1 = 2
(
Edited: 2017-10-02)
3.
<u>Perceptron update rule</u>
* Correct: Do Nothing
* False Positive: w = w-x, theta = theta+1
* False Negative: w = w+x, theta = theta-1
'''given:'''
* w = [1,2,3] theta = 1;
* x [1,1,1] false positive example
'''update weights'''
* w = [1,2,3] - [1,1,1] = [0,1,2]
* theta = 1+1 = 2