LFD Book Forum

LFD Book Forum (http://book.caltech.edu/bookforum/index.php)
-   Homework 1 (http://book.caltech.edu/bookforum/forumdisplay.php?f=130)
-   -   Problems with iteration numbers of Question 7 and 9 (http://book.caltech.edu/bookforum/showthread.php?t=865)

rita.wu 07-17-2012 12:29 AM

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~

yaser 07-17-2012 01:02 AM

Re: Problems with iteration numbers of Question 7 and 9
 
Quote:

Originally Posted by rita.wu (Post 3454)
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?

sabrinamimi 09-20-2015 02:57 AM

Re: Problems with iteration numbers of Question 7 and 9
 
right answer :)


All times are GMT -7. The time now is 07:32 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.