Embedding machine learning into passivity theory: A port-Hamiltonian approach.