Embedding Machine Learning Into Passivity Theory: A Port-Hamiltonian Approach.