Docsity

Weight Update Rule: Perceptron Algorithm Exercise, Assignments of Computer Science

Toggle sidebar
bg1
1 EXERCISE 1.3
1 Exercise 1.3
The weight update rule has the nice interpretation that it moves in the
direction of classifying x(t)correctly.
(a) Show that y(t)wT(t)x(t)<0.
x(t)is misclassified by w(t), so the sign of wT(t)x(t)must be
opposite to the sign of y(t). Multiplying two numbers with
opposite signs results in a negative number.
(b) Show that y(t)wT(t+ 1)x(t)> y(t)wT(t)x(t).
The update rule is
w(t+ 1) = w(t) + y(t)x(t).
Taking the transpose of both sides of the equation, we get
wT(t+ 1) = wT(t) + y(t)xT(t).
Multiplying both sides of the equation by y(t)x(t), we get
y(t)wT(t+ 1)x(t) = y(t)wT(t)x(t)+(y(t))2xT(t)x(t).
Simplifying the right hand side, we get
y(t)wT(t+ 1)x(t) = y(t)wT(t)x(t)+(y(t))2|x(t)|2.
Since (y(t))2|x(t)|2is always positive, the given inequality is
proven.
1

Partial preview of the text

Download Weight Update Rule: Perceptron Algorithm Exercise and more Assignments Computer Science in PDF only on Docsity!

1 EXERCISE 1.

1 Exercise 1.

The weight update rule has the nice interpretation that it moves in the direction of classifying x ( t ) correctly.

(a) Show that y ( t ) w T( t ) x ( t ) < 0.

x ( t ) is misclassified by w ( t ), so the sign of w T( t ) x ( t ) must be opposite to the sign of y ( t ). Multiplying two numbers with opposite signs results in a negative number.

(b) Show that y ( t ) w T( t + 1) x ( t ) > y ( t ) w T( t ) x ( t ).

The update rule is

w ( t + 1) = w ( t ) + y ( t ) x ( t ).

Taking the transpose of both sides of the equation, we get

w T( t + 1) = w T( t ) + y ( t ) x T( t ).

Multiplying both sides of the equation by y ( t ) x ( t ), we get

y ( t ) w T( t + 1) x ( t ) = y ( t ) w T( t ) x ( t ) + ( y ( t ))^2 x T( t ) x ( t ).

Simplifying the right hand side, we get

y ( t ) w T( t + 1) x ( t ) = y ( t ) w T( t ) x ( t ) + ( y ( t ))^2 | x ( t )|^2.

Since ( y ( t ))^2 | x ( t )|^2 is always positive, the given inequality is proven.