latent-space machine learning algorithm