compute_predictions function

Compute the predictions of base models