compute_predictions: Compute the predictions of base models
Description
This function is used to predict new observations
using the predictive models comprising an ensemble.
It calls on the respective method based on the type of
model, and returns the predictions as a list.
Usage
compute_predictions(M, form, data)