When I implemented the Hamiltonian network, I got some questions that I didn't understand.
When outputting Hamiltonian H by NN with input x = (q, p)
Let H = f (x) and let f be an NN with parameter θ.
L = (∂H/∂p --dp/dt) ^ 2 + (∂H/∂q --dq/dt) ^ 2
I would like to define and ask how to calculate the gradient ∂L/∂θ at θ.
∂L/∂θ = (∂L/∂H) (∂H/∂p) (∂p/∂θ)
I want to calculate, but since neither p nor q is a function of θ, I think that ∂p/∂θ cannot be calculated.
How is the θ gradient of the loss function calculated?
It's a mathematical question, so it may be out of place, but I couldn't find any other place to ask, so I asked.
Answer # 1
If p and q do not depend on θ
∂L/∂θ = (∂H/∂p)/∂θ + (∂H/∂q)/∂θ
Therefore, I think that there is no choice but to partially differentiate ∂H/∂p and ∂H/∂q with θ.
Certainly stackoverflow seems out of place.
- python - what i don't understand about yolo9000 (v2)
- python - about write loop to csv
- about python argument and data definition
- python 3x - about downloading anaconda
- python - about the optimum angle of rotation matrix
- python - about downloading youtube videos by youtube-dl
- about processing to exclude the character string group specified from list in python
- i have a question about basic python problems
- python, about the fire spread step of forest fire simulation
- about the python speedtest code
- about the implementation of combinations in python
- please tell me about the role of python tag = "mychr"
- about python def issues
- about the operation of python's speedtest module (library)
- pythonista - [python] questions about line splitting in dataframe
- about batch change of file name using python
- python - about "" "of" "" select === = "" "
- python - about kaggle's titanic: fare's histogram doesn't appear
- python - i'm not sure about add_axes in matplotlib
- python - you may need to restart the kernel to use updated packages error
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- sh - 'apt-get' is not recognized as an internal or external command, operable program or batch file
- i want to check the type of a shell script variable
- i want to call a child component method from a parent in vuejs