compute_model_prediction function

Create a model of a data set and compute predictions.