LFD Book Forum  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-17-2012, 12:29 AM
rita.wu rita.wu is offline
Junior Member
 
Join Date: Jul 2012
Posts: 1
Default Problems with iteration numbers of Question 7 and 9

Dear Prof, I've implemented the PLA algorithm with Matlab, and submitted my answers. However, I find that deciding the iteration of 10 samples is quite troublesome. As in my implementation, even after repeating the experiment for 1000 times, the answer is just between two choices you provided, sometimes closer to the first one, while sometimes the second.

Besides, I changed the way of picking the misclassified point in each iteration, the iteration numbers changed, too. So I think the answer depends on the implementation of PLA and the generation of samples points.

Could you please shed light on the problem? Thank you~
Reply With Quote
  #2  
Old 07-17-2012, 01:02 AM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: Problems with iteration numbers of Question 7 and 9

Quote:
Originally Posted by rita.wu View Post
Dear Prof, I've implemented the PLA algorithm with Matlab, and submitted my answers. However, I find that deciding the iteration of 10 samples is quite troublesome. As in my implementation, even after repeating the experiment for 1000 times, the answer is just between two choices you provided, sometimes closer to the first one, while sometimes the second.

Besides, I changed the way of picking the misclassified point in each iteration, the iteration numbers changed, too. So I think the answer depends on the implementation of PLA and the generation of samples points.

Could you please shed light on the problem? Thank you~
There are variations depending on the factors you mentioned. However, if you repeat the experiment for a large number of runs (different targets, different data, etc.), and take the average as specified in the problem statement, you should be closer to one of the given answers. Is this what you have done?
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #3  
Old 09-20-2015, 02:57 AM
sabrinamimi sabrinamimi is offline
Junior Member
 
Join Date: Sep 2015
Posts: 1
Default Re: Problems with iteration numbers of Question 7 and 9

right answer
Reply With Quote
Reply

Tags
iterations

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 12:40 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.