automl.createconfigspacepipeline package

Submodules

automl.createconfigspacepipeline.base module

class automl.createconfigspacepipeline.base.ConfigSpacePipeline(pipeline)

Bases: object

This class deals with the creation and manipulation of configuration space from the given input pipeline.

In addition to getting the configuration spaces from the predefined json files, it also resets the default values of the configuration space depending on the provided input. The upper and lower limit of a hyperparameter in a configuration space is also adjusted if the input hyperparameter value is out of range. This class is not supposed to be instantiated by the user instead is used by the BayesianOptimizationPipeline class.

Parameters:pipeline (Pipeline) – The pipeline for which configuration space will be generated.
get_config_space()

This function is used to get the combined configuration space for the pipeline.

This function process each component in the pipeline, thereby adding the configuration space with reset default of each of the component and obtaining the complete configuration space. It adds configuration space of components within ‘FeatureUnion’ and deals with situation such as ‘FeatureUnion’ within ‘FeatureUnion’. It also adds the configuration space of estimators of a component but not of the component itself.

Returns:Configuration space of the pipeline.
Return type:ConfigurationSpace

Module contents

This package deals with the processing and building related to Configuration Space of the Pipeline