Bayesian learning with applications to cell-free Massive MIMO