Learn priors and likelihoods