auto-sklearn 学习要点

找包的代码原来在这,我tm自己瞎写了一个autosklearn.pipeline.components.base.find_components

def find_components(package, directory, base_class):
    components = OrderedDict()

    for module_loader, module_name, ispkg in pkgutil.iter_modules([directory]):
        full_module_name = "%s.%s" % (package, module_name)
        if full_module_name not in sys.modules and not ispkg:
            module = importlib.import_module(full_module_name)

            for member_name, obj in inspect.getmembers(module):
                if inspect.isclass(obj) and issubclass(obj, base_class) and \
                        obj != base_class:
                    # TODO test if the obj implements the interface
                    # Keep in mind that this only instantiates the ensemble_wrapper,
                    # but not the real target classifier
                    classifier = obj
                    components[module_name] = classifier

    return components

有时间康康,我太难了


dsmac.initial_design.sobol_design.SobolDesign#_select_configurations

sobol = sobol_seq.i4_sobol_generate(len(params) - constants, self.init_budget)

sobol_seq.sobol_seq.i4_sobol_generate

I4_SOBOL - Fatal error!
  The spatial dimension DIM_NUM should satisfy:
    1 <= DIM_NUM <= 40
  But this input value is DIM_NUM = 52

你可能感兴趣的:(automl)