predict_model function

Generate predictions for input data with specified model