changed interface for predict_probability