Dimensionality Reduction as Probabilistic Inference