Expressive dynamics models with nonlinear injective readouts enable reliable recovery of latent features from neural activity