Locally Bayesian Learning in Networks