Bayesian Priors from Loss Matching