Nonlinear Multiple Response Regression and Learning of Latent Spaces