Port-Hamiltonian Neural Networks: From Theory to Simulation of Interconnected Stochastic Systems | Synapse