mlos_bench.storage.sql.tunable_config_data module¶
An interface to access the tunable config data stored in SQL DB.
- class mlos_bench.storage.sql.tunable_config_data.TunableConfigSqlData(*, engine: Engine, schema: DbSchema, tunable_config_id: int)¶
Bases:
TunableConfigData
SQL interface for accessing the stored experiment benchmark (tunable) config data.
A configuration in this context is the set of tunable parameter values.
- Attributes:
config_df
Retrieve the trials’ tunable configuration from the storage.
config_dict
Retrieve the trials’ tunable configuration from the storage as a dict.
tunable_config_id
Unique ID of the (tunable) configuration.
- property config_df: DataFrame¶
Retrieve the trials’ tunable configuration from the storage.
Note: this corresponds to the Trial object’s “tunables” property.
- Returns:
- configpandas.DataFrame
A dataframe with the tunable configuration of the trial. It has two str columns, “parameter” and “value”.