L17-Perceptron
L17-Perceptron
■ Frank Rosenblatt
■ 1928-1969
"an electronic computer that [the Navy] expects will be able to walk, talk,
see, write, reproduce itself and be conscious of its existence"
- NY Times, 1958 3
Perceptron Learning Algorithm
4
Perceptron Learning Algorithm
5
Perceptron Learning Algorithm
6
What is Perceptron?
The goal of perceptron algorithm is to find a hyperplane that
separates a set of data into two classes.
Class 1
Class 0
7
What is Perceptron?
The goal of perceptron algorithm is to find a hyperplane that
separates a set of data into two classes.
Class 1
• Binary classifier
• Supervised learning
Class 0
8
Perceptron
bias term
Class 1
1, if w · x + ✓ > 0
f (x) = 1, w · x + b > 0
0, otherwise
P
n
Class 0 w·x= wi xi (dot product)
i=1
9
Perceptron
Net Activation funciton Output
x1 w1
x2 w2 Z
1, if w · x > ✓
z= 0, w · x <= ✓
xn wn
P
n
w·x= w i xi
i=1
⎧ 1 if x ≥ 0
f (x) := sgn(x) = ⎨
⎩−1 if x < 0
Step function
€
f (x) = max(0, x)
1
f (x) := σ (x) =
1+ e(−ax )
Sigmoid function 11
Perceptron as a Single Layer Neuron
12
Examples
✓ = 0.2
.9 .5
.1 -.3
Z z =?
1, if w · x > ✓
z= 0, w · x <= ✓
.8 .4
.6 .2 Z z =?
.2 -.5 ✓ = 0.1
13
How to Learn Perceptron?
Class 1
1, if w · x + ✓ > 0
f (x) = 1, w · x + b > 0
0, otherwise
14
How to Learn Perceptron?
Class 1
1, if w · x + ✓ > 0
f (x) = 1, w · x + b > 0
0, otherwise
new old
P
w =w + 4w 4w = ⌘ (d o)xi
i
17
Perceptron Learning Rules
18
Linear Separability
19
Limited Functionality of Hyperplane
CS 478 - Perceptrons 20
Multilayer Network
output layer n
o1 = sgn(∑ w1i x i )
i= 0
hidden layer
n
€
o2 = sgn(∑ w 2i x i )
i= 0
input layer
21