mlos_bench.storage.sql.tunable_config_data
An interface to access the tunable config data stored in a SQL DB using the
TunableConfigData
interface.
Classes
SQL interface for accessing the stored experiment benchmark (tunable) config data. |
Module Contents
- class mlos_bench.storage.sql.tunable_config_data.TunableConfigSqlData(*, engine: sqlalchemy.engine.Engine, schema: mlos_bench.storage.sql.schema.DbSchema, tunable_config_id: int)[source]
Bases:
mlos_bench.storage.base_tunable_config_data.TunableConfigData
SQL interface for accessing the stored experiment benchmark (tunable) config data.
A configuration in this context is the set of tunable parameter values.
- Parameters:
engine (sqlalchemy.engine.Engine)
tunable_config_id (int)
- property config_df: pandas.DataFrame[source]
Retrieve the trials’ tunable configuration from the storage.
Note: this corresponds to the Trial object’s “tunables” property.
- Returns:
config – A dataframe with the tunable configuration of the trial. It has two str columns, “parameter” and “value”.
- Return type: