======================================== Documentation of `Learning_Hamiltonians` ======================================== `Learning Hamiltonians `_ is a Python code for learning the Hamiltonian of a constrained mechanical system. It is part of the source code for the paper `(Celledoni, Leone, Murari and Owren, 2022) `_ and uses `PyTorch `_ as deep learning library, in particular the modules related to `automatic differentiation `_, `optimization algorithms `_ and `neural networks `_. An introduction to the problem and a description of the system under consideration are provided in :ref:`Example `. The :ref:`learning procedure ` is presented in the homonymous section. The code can be run from the `main file `_. Contents -------- .. toctree:: installation intro learn :maxdepth: 2 Indices and tables ------------------ * :ref:`genindex` * :ref:`search`