Perceptron
Perceptron
f : Rd ! Y
60000
Income
40000
20000
0
Balance
• NN were popular in the 90’s but then lost some of its popularity.
!"#$%&"'('
!"#$%&"')'
Perceptron
!"#$%&"'('
!"#$%&"')'
d
X
f (xi) = sign( wj xij )
j=0
Perceptron
• Works perfectly if data is linearly separable. If not, it will not
converge.
• Iterative method.
Perceptron
Perceptron Algorithm
Begin
2. Initialize the weights wj to 0 8j 2 {0, · · · , d}
3. Repeat until convergence
4. For each example xi 8i 2 {1, · · · , n}
5. if yif (xi) 0 #an error?
6. update all wj with wj := wj + yixi #adjust the weights
End
Perceptron
Some observations:
+ +
-
+ +
-
+
- +
- - +
- +
-