Bayesian Machine Learning for Controlling Autonomous Systems