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-16-2012 11:29 PM

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 12: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 01:57 AM

Re: Problems with iteration numbers of Question 7 and 9

 All times are GMT -7. The time now is 09:17 AM.