Controlling dynamical systems into unseen target states using machine learning