Bayesian inference codebase