makePredictor function

User-friendly function to create a Predictor .