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(configurations: pandas.DataFrame) pandas.DataFrame[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:

configurations (pandas.DataFrame) – Dataframe of configurations / parameters, which belong to the original parameter space. The columns are the parameter names the original parameter space and the rows are the configurations.

Returns:

configurations – Dataframe of the translated configurations / parameters. The columns are the parameter names of the target parameter space and the rows are the configurations.

Return type:

pandas.DataFrame

transform(configuration: pandas.DataFrame) pandas.DataFrame[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.DataFrame) – Pandas dataframe with a single row. Column names are the parameter names of the target parameter space.

Returns:

configuration – Pandas dataframe with a single row, containing the translated configuration. Column names are the parameter names of the original parameter space.

Return type:

pandas.DataFrame

property target_parameter_space: ConfigSpace.ConfigurationSpace[source]

Target parameter space that is fed to the underlying optimizer.

Return type:

ConfigSpace.ConfigurationSpace