mlos_core.spaces.adapters.identity_adapter

Contains the Identity (no-op) Space Adapter class.

Classes

IdentityAdapter

Identity (no-op) SpaceAdapter class.

Module Contents

class mlos_core.spaces.adapters.identity_adapter.IdentityAdapter(*, orig_parameter_space: ConfigSpace.ConfigurationSpace)[source]

Bases: mlos_core.spaces.adapters.adapter.BaseSpaceAdapter

Identity (no-op) SpaceAdapter class.

Parameters:

orig_parameter_space (ConfigSpace.ConfigurationSpace) – The original parameter space to explore.

inverse_transform(configuration: pandas.Series) pandas.Series[source]

Translates a configuration, which belongs to the original parameter space, to the target parameter space. This method is called by the register method of the BaseOptimizer class, and performs the inverse operation of transform() method.

Parameters:

configuration (pandas.Series) – A Series of configuration parameters, which belong to the original parameter space. The indices are the parameter names the original parameter space and the rows are the configurations.

Returns:

configuration – Series of the translated configurations / parameters. The indices are the parameter names of the target parameter space and the rows are the configurations.

Return type:

pandas.Series

transform(configuration: pandas.Series) pandas.Series[source]

Translates a configuration, which belongs to the target parameter space, to the original parameter space. This method is called by the suggest() method of the BaseOptimizer class.

Parameters:

configuration (pandas.Series) – Pandas series. Column names are the parameter names of the target parameter space.

Returns:

configuration – Pandas series, containing the translated configuration. Column names are the parameter names of the original parameter space.

Return type:

pandas.Series

property target_parameter_space: ConfigSpace.ConfigurationSpace[source]

Target parameter space that is fed to the underlying optimizer.

Return type:

ConfigSpace.ConfigurationSpace