get_prediction_constant function

Generic function for returning the prediction constant in a trained learner