Functions for learning Bayesian inference
