Approximate Manifold Sampling: Robust Bayesian Inference for Machine Learning