

def _estimator_param_grid(params_config):
    for (name, config) in params_config.items():
        try:
            EstimatorClass = yamlconf.import_module(config['class'])
            estimator = EstimatorClass()
        except Exception:
            logger.warn('Could not load estimator {0}'.format(config['class']))
            logger.warn(('Exception:\n' + traceback.format_exc()))
            continue
        if (not hasattr(estimator, 'fit')):
            logger.warn('Estimator {0} does not have a fit() method.'.format(name['class']))
            continue
        param_grid = grid_search.ParameterGrid(config['params'])
        (yield (name, estimator, param_grid))

dataset/ETHPy150Open wiki-ai/revscoring/revscoring/utilities/tune.py _estimator_param_grid/VarMisuse@107/167 `config`->`name`