mlos_bench.launcher

A helper class to load the configuration files, parse the command line parameters, and instantiate the main components of mlos_bench system.

It is used in the mlos_bench.run module to run the benchmark/optimizer from the command line.

Classes

Launcher

Command line launcher for mlos_bench and mlos_core.

Module Contents

class mlos_bench.launcher.Launcher(description: str, long_text: str = '', argv: List[str] | None = None)[source]

Command line launcher for mlos_bench and mlos_core.

Parameters:
  • description (str)

  • long_text (str)

  • argv (Optional[List[str]])

property config_loader: mlos_bench.services.config_persistence.ConfigPersistenceService[source]

Get the config loader service.

Return type:

mlos_bench.services.config_persistence.ConfigPersistenceService

environment: mlos_bench.environments.base_environment.Environment[source]
global_config[source]
optimizer[source]
root_env_config[source]
scheduler[source]
property service: mlos_bench.services.base_service.Service[source]

Get the parent service.

Return type:

mlos_bench.services.base_service.Service

storage[source]
teardown: bool[source]
tunables[source]