Prediction from Bayesian outputs