Question

The following table shows a data set and the number of times each point is misclassified...

The following table shows a data set and the number of times each point is misclassified during a run of the perceptron algorithm (with offset θ0). θ and θ0 are initialized to zero.

i x(i) y(i) times misclassified
1 [-4, 2] +1 1
2 [-2, 1] +1 0
3 [-1, -1] -1 2
4 [2, 2] -1 1
5 [1, -2] -1 0

Write down the state of θ and θ0 after this run has completed (note, the algorithm may not yet have converged). Enter θ as a list [θ1,θ2] and θ0 as a single number;

θ = ?

θ0 = ?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

θ=[0,0], θo=0

Here, for y=+1, θx+θo>0 and y=-1,θx+θo<=0

if x has label +1 but got misclasfied, then θ=θ+x

if x has label -1 but got misclassified, then θ=θ-x

Using perceptron algorithm,

θ=[-4,2]-2*[-1,-1]-[2,2] =[-4,2]

θo=1-2*1-1=-2

So,θ=[-4,2] and θo=-2

Add a comment
Know the answer?
Add Answer to:
The following table shows a data set and the number of times each point is misclassified...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT