Port-Hamiltonian Neural Networks with Output Error Noise Models