LFD Book Forum  

Go Back   LFD Book Forum > Course Discussions > Online LFD course > Homework 1

Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2013, 04:13 PM
avorobey avorobey is offline
Junior Member
 
Join Date: Jan 2013
Posts: 3
Default misclassified points after update

In my perceptron code, I added a check that after updating the weights on a misclassified point, the point becomes "correct". The lecture claims that after updating w<--w+x_i*y_i, w becomes correct on x_i (using a geometric obtuse/acute angle intuition). To my surprise, my check failed every now and then, not on every PLA run, but occasionally - meaning that sometimes the point stayed misclassified after an update. I didn't see any other issues with my code, and the answers it generated led to correct answers on the homework.

Before I delve into it and try to debug it, I thought of asking if this is known to be normal, or was experienced by others. Come to think of it, I don't see an obvious rigorous argument that updating makes w correct on the point under consideration - is there a simple way to prove this I'm missing?
Reply With Quote
  #2  
Old 01-15-2013, 06:24 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: misclassified points after update

Quote:
Originally Posted by avorobey View Post
In my perceptron code, I added a check that after updating the weights on a misclassified point, the point becomes "correct". The lecture claims that after updating w<--w+x_i*y_i, w becomes correct on x_i (using a geometric obtuse/acute angle intuition). To my surprise, my check failed every now and then, not on every PLA run, but occasionally - meaning that sometimes the point stayed misclassified after an update. I didn't see any other issues with my code, and the answers it generated led to correct answers on the homework.

Before I delve into it and try to debug it, I thought of asking if this is known to be normal, or was experienced by others. Come to think of it, I don't see an obvious rigorous argument that updating makes w correct on the point under consideration - is there a simple way to prove this I'm missing?
The point does not necessarily become correctly classified in one update, but it "moves in the right direction" (gets closer to the boundary if it remains misclassified). What can be proved is that if you keep updating and the points are linearly separable, they will all eventually become correctly classified.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:25 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.