mlos_bench.storage.storage_factory module

Factory method to create a new Storage instance from configs.

mlos_bench.storage.storage_factory.from_config(config_file: str, global_configs: List[str] | None = None, **kwargs: Any) Storage

Create a new storage object from JSON5 config file.

Parameters:
config_filestr

JSON5 config file to load.

global_configsOptional[List[str]]

An optional list of config files with global parameters.

kwargsdict

Additional configuration parameters.

Returns:
storageStorage

A new storage object.