Prediction-Constrained Latent Variable Models