![]() |
#1
|
|||
|
|||
![]()
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)) |
#2
|
|||
|
|||
![]()
The derivatives are correct. Please check your code again.
|
#3
|
|||
|
|||
![]()
Got it: I was calculating v with the updated u. It's vital to update both in one step...
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|