How Bayesian machine learning works