Contributions to Large Scale Bayesian Inference and Adversarial Machine Learning