def get_estimator(name):
    """
    Return the corresponding estimator.
    
    Parameters
    ----------
    name : str
        Name of the estimator
    
    Returns
    -------
    Estimator
        The corresponding estimator.
    """
    predictors = ['LinearRegression','Ridge','Lasso','BayesianRidge',
                  'DecisionTreeRegressor','RandomForestRegressor','SVR',
                  'GradientBoostingRegressor','MLPRegressor',
                  'RandomForestClassifier','ExtraTreesClassifier','SVC',
                  'MLPClassifier', 'MultinomialNB']
    
    if name not in predictors:
        raise Exception('Estimator %s is not available' % (name))
    
    name = name + '()'
    return eval(name)