LFD Book Forum  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2013, 12:47 AM
IsidroHidalgo IsidroHidalgo is offline
Member
 
Join Date: Apr 2013
Location: Toledo (Spain)
Posts: 28
Default *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:

Code:
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))
Reply With Quote
  #2  
Old 05-06-2013, 01:12 AM
bargava bargava is offline
Junior Member
 
Join Date: Apr 2013
Posts: 8
Default Re: *ANSWER* HW5-Q5: E(u,v) derivatives

The derivatives are correct. Please check your code again.
Reply With Quote
  #3  
Old 05-06-2013, 01:35 AM
IsidroHidalgo IsidroHidalgo is offline
Member
 
Join Date: Apr 2013
Location: Toledo (Spain)
Posts: 28
Default 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...
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:00 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.