Integrating Port-Hamiltonian Systems with Neural Networks: From Deterministic to Stochastic Frameworks | Synapse