Learning Latent Representations to Co-Adapt to Humans