deepcave.utils.converters

# Converters

This module provides utilities for converters.

Functions

extract_config(data, configspace)

Extract the ConfigSpace configuration from a pandas series.

extract_costs(data)

Extract the costs from a pandas series.

extract_value(name_string, field)

Extract the value of a field from a string.

deepcave.utils.converters.extract_config(data, configspace)[source]

Extract the ConfigSpace configuration from a pandas series.

Parameters:
  • data (pd.Series) – The pandas series containing the configuration.

  • configspace (ConfigSpace.ConfigurationSpace) – The configuration space.

Returns:

The extracted ConfigSpace configuration.

Return type:

ConfigSpace.Configuration

deepcave.utils.converters.extract_costs(data)[source]

Extract the costs from a pandas series.

Parameters:

data (pd.Series) – The pandas series containing the costs.

Returns:

The extracted costs.

Return type:

List[float]

deepcave.utils.converters.extract_value(name_string, field)[source]

Extract the value of a field from a string.

Parameters:
  • name_string (str) – The string to extract the value from.

  • field (str) – The field to extract the value from.

Returns:

The extracted value.

Return type:

Optional[str]