LFD Book Forum

LFD Book Forum (http://book.caltech.edu/bookforum/index.php)
-   Homework 5 (http://book.caltech.edu/bookforum/forumdisplay.php?f=134)
-   -   *ANSWER* HW5-Q5: E(u,v) derivatives (http://book.caltech.edu/bookforum/showthread.php?t=4267)

IsidroHidalgo 05-06-2013 12:47 AM

*ANSWER* HW5-Q5: E(u,v) derivatives
My iterations go extremely slowly, so I suspect having an error in my derivatives. Can someone take a look to them and see if all is ok? Thank you:


u = u - learning.rate*2*(u*exp(v)-2*v*exp(-u))*(exp(v)+2*v*exp(-u))
v = v - learning.rate*2*(u*exp(v)-2*v*exp(-u))*(u*exp(v)-2*exp(-u))

bargava 05-06-2013 01:12 AM

Re: *ANSWER* HW5-Q5: E(u,v) derivatives
The derivatives are correct. Please check your code again.

IsidroHidalgo 05-06-2013 01:35 AM

Re: *ANSWER* HW5-Q5: E(u,v) derivatives
Got it: I was calculating v with the updated u. It's vital to update both in one step... :eek:

All times are GMT -7. The time now is 02:38 AM.

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