LFD Book Forum  

Go Back   LFD Book Forum > Book Feedback - Learning From Data > Chapter 3 - The Linear Model

Reply
 
Thread Tools Display Modes
  #1  
Old 10-18-2016, 08:15 PM
wolszhang wolszhang is offline
Junior Member
 
Join Date: Sep 2016
Posts: 5
Default Pocket Algorithm

Hi, all, i am currently coding pocket algorithm. However, since we are using it on a non-separable data, the PLA is never going to converge and thus run into infinite loops. Do i just set a break point or it there any other stoping conditions?
Reply With Quote
  #2  
Old 10-18-2016, 09:00 PM
wolszhang wolszhang is offline
Junior Member
 
Join Date: Sep 2016
Posts: 5
Default Re: Pocket Algorithm

AND BTW, hw1 specifies that we could only use the training data, but the first problem asks us to plot the train data and test set data.
Reply With Quote
  #3  
Old 10-19-2016, 08:23 AM
gregoryw gregoryw is offline
Junior Member
 
Join Date: Oct 2016
Posts: 1
Default Re: Pocket Algorithm

As I understand it, the idea of the pocket algorithm is that you save the best weights, and stop at an arbitrary point, say after 10,000 iterations. Then return that best weight. I think part1 of the homework is saying that you are only supposed to train off the training set, but then plot both sets with the separator.
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 09:10 AM.


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.