Learning dynamical systems: an example from open quantum system dynamics