Learning Dynamics as a Many-Body Problem