Text this: Port-Hamiltonian neural networks for learning explicit time-dependent dynamical systems