LFD Book Forum  

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

Reply
 
Thread Tools Display Modes
  #21  
Old 04-08-2013, 02:57 PM
IsidroHidalgo IsidroHidalgo is offline
Member
 
Join Date: Apr 2013
Location: Toledo (Spain)
Posts: 28
Default Re: PLA: Let share nice visualizations

With N=10 I have many iterations lower than[*] (I have an "outlier" too:[*] !!!!)

[*] Admin Edit: I have masked the specific numbers since they reveal too much about the answer. Please start a thread whose title starts with *ANSWER* to discuss this per the announcement.
Reply With Quote
  #22  
Old 04-08-2013, 03:04 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: PLA: Let share nice visualizations

Quote:
Originally Posted by OlivierB View Post
As I already have submitted, I know that I probably get the correct results for questions 7, 8, and 10. But not for question 9! So there is still something puzzling... If by experience you have an idea about my probable mistake, I would be grateful for your insight
I suggest starting an *ANSWER* thread and discussing this openly with other participants.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #23  
Old 04-08-2013, 07:38 PM
wangkexue wangkexue is offline
Junior Member
 
Join Date: Apr 2013
Posts: 5
Default Re: PLA: Let share nice visualizations

everyone is cool
and here is mine



The most exciting thing is that after 1000 iteration, I get almost exactly the answer, with differences 0.6 and 3 in average iteration respectively for N = 10 and 100.

Admin edit: I am guessing this is the wrong jpg, so please let me know the right one and I'll edit it in.
Reply With Quote
  #24  
Old 04-08-2013, 10:13 PM
pyguy pyguy is offline
Junior Member
 
Join Date: Apr 2013
Posts: 5
Default Re: PLA: Let share nice visualizations

Here's my attempt at an animation using Python and matplotlib with N=100: http://dl.dropbox.com/u/153/hw/problem_9.html.
Reply With Quote
  #25  
Old 04-08-2013, 10:45 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: PLA: Let share nice visualizations

Quote:
Originally Posted by pyguy View Post
Here's my attempt at an animation using Python and matplotlib with N=100: http://dl.dropbox.com/u/153/hw/problem_9.html.
Cool.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #26  
Old 04-09-2013, 11:52 AM
OlivierB OlivierB is offline
Member
 
Join Date: Apr 2013
Location: Paris
Posts: 16
Default Re: PLA: Let share nice visualizations

Quote:
Originally Posted by Elroch View Post
There is a quantitative indication of one part of the variation in the number of iterations in the proof of convergence of the PLA algorithm in Problem 1.3 in the book.
Thanks for pointing problem 1.3 in the book.
I have ordered it, but not received it yet. I will have a look.
Reply With Quote
  #27  
Old 04-09-2013, 08:54 PM
oscargiraldo oscargiraldo is offline
Junior Member
 
Join Date: Apr 2013
Location: Lima, Perú
Posts: 1
Default Re: PLA: Let share nice visualizations

This is my contribution
Reply With Quote
  #28  
Old 04-09-2013, 09:26 PM
paul99 paul99 is offline
Member
 
Join Date: Apr 2013
Location: Vancouver, BC (Canada)
Posts: 11
Default Re: PLA: Let share nice visualizations

Quote:
Originally Posted by pyguy View Post
Here's my attempt at an animation using Python and matplotlib with N=100: http://dl.dropbox.com/u/153/hw/problem_9.html.
Thanks @pyguy !! That was very cool! I would love to see how you did that -- any chance you can share your code? I want to learn! Many thanks!
Reply With Quote
  #29  
Old 04-09-2013, 11:35 PM
wangkexue wangkexue is offline
Junior Member
 
Join Date: Apr 2013
Posts: 5
Default Re: PLA: Let share nice visualizations

Dose this link work?
Reply With Quote
  #30  
Old 04-10-2013, 04:38 AM
IsidroHidalgo IsidroHidalgo is offline
Member
 
Join Date: Apr 2013
Location: Toledo (Spain)
Posts: 28
Default Re: PLA: Let share nice visualizations

Quote:
Originally Posted by IsidroHidalgo View Post
With N=10 I have many iterations lower than[*] (I have an "outlier" too:[*] !!!!)

[*] Admin Edit: I have masked the specific numbers since they reveal too much about the answer. Please start a thread whose title starts with *ANSWER* to discuss this per the announcement.
Sorry about that. I'll be more careful...
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 07:44 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.