def get_regression_function(model, model_code):
    """
    Method which return prediction function for trained regression model

    :param model: trained model object
    :return: regression predictor function
    """

    return model.predict