A Method for Compressing Parameters in Bayesian Models with Application to Logistic Sequence Prediction Models