@staticmethod
def is_regression(modelobj):
    """
        determined whether users modelobj is regression or classification based on
        presence of predict_proba

        :param modelobj: sklearn model object
        :return: sklearn predict method, str classification type
        :rtype: sklearn predict, str
        """
    if hasattr(modelobj, 'predict_proba'):
        predict_engine = getattr(modelobj, 'predict_proba')
        model_type = 'classification'
    else:
        predict_engine = getattr(modelobj, 'predict')
        model_type = 'regression'
    return predict_engine, model_type
