PortHNN
Port-Hamiltonian Neural Networks for Learning Explicit Time-Dependent Dynamical Systems
Install / Use
/learn @shaandesai1/PortHNNREADME
PortHNN
Port-Hamiltonian Neural Networks for Learning Explicit Time-Dependent Dynamical Systems (https://arxiv.org/abs/2107.08024)
We show that an embedded Port-HNN in neural networks is significantly more performant than existing approaches at learning from explicit, non-autonomous time-dependent physical systems.
To run this code, all you need is torch.
cd into the main directory, then type in:
./runner_files_reg/run_all_methods.sh
It will run all methods and save the models. Then, to generate the figures from the paper use:
general_inference.ipynb
A separate file is designated for the coupled system and runs in its own jupyter notebook.
Note: The default configuration will train all the methods with an embedded integrator (RK4) for a single-step integration i.e. t to t+1. To change the training regime to use gradients, edit:
parser.add_argument('-embed_integ','--embed_integ',action="store_false")
to
parser.add_argument('-embed_integ','--embed_integ',action="store_true")
.
It is possible to extend the method to multi-step integration via neuralODE [needs implementation]
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
400Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
last30days-skill
19.9kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
