LFD Book Forum  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2012, 11:05 AM
jcatanz jcatanz is offline
Member
 
Join Date: Apr 2012
Posts: 41
Default Help resolve HW 5 Problem 5 ambiguity?

Does the initial value (u,v) = (1,1) count as iteration number 1, or as iteration number 0?

Thanks!
Reply With Quote
  #2  
Old 05-06-2012, 12:05 PM
IamMrBB IamMrBB is offline
Invited Guest
 
Join Date: Apr 2012
Posts: 107
Default Re: Help resolve HW 5 Problem 5 ambiguity?

Normally the starting value does not count as an iteration. So I'd say zero.
Reply With Quote
  #3  
Old 08-10-2012, 02:21 AM
gah44 gah44 is offline
Invited Guest
 
Join Date: Jul 2012
Location: Seattle, WA
Posts: 153
Default Re: Help resolve HW 5 Problem 5 ambiguity?

I agree, it should be zero.

I almost got this wrong, though. I was printing out the values
before updating u and v, but the loop started at 1.

I fixed it before reading this thread, though.
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 04:56 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2020, 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.