dacbench.container.remote_runner

This is strongly guided and partially copy from https://github.com/automl/HPOBench/blob/master/hpobench/container/client_abstract_benchmark.py

Module Contents

Classes

RemoteRunnerServer

RemoteRunner

RemoteRunnerServerFactory

dacbench.container.remote_runner.SERVERTYPE = multiplex
dacbench.container.remote_runner.log_level_str
dacbench.container.remote_runner.LOG_LEVEL
dacbench.container.remote_runner.LOG_LEVEL
dacbench.container.remote_runner.root
dacbench.container.remote_runner.logger
dacbench.container.remote_runner.excepthook
dacbench.container.remote_runner.MAX_TRIES = 5
dacbench.container.remote_runner.SOCKET_PATH
class dacbench.container.remote_runner.RemoteRunnerServer(pyro_demon)
start(self, config: str, benchmark: Tuple[str, str])
get_environment(self) str
class dacbench.container.remote_runner.RemoteRunner(benchmark: dacbench.abstract_benchmark.AbstractBenchmark, container_name: str = None, container_source: Optional[str] = None, container_tag: str = 'latest', env_str: Optional[str] = '', bind_str: Optional[str] = '', gpu: Optional[bool] = False, socket_id=None)
FACTORY_NAME :str = RemoteRunnerServerFactory
property socket(self) pathlib.Path
static id_generator() str

Helper function: Creates unique socket ids for the benchmark server

static socket_from_id(socket_id: str) pathlib.Path
__start_server(self, env_str, bind_str, gpu)

Starts container and the pyro server

Parameters
  • env_str (str) – Environment string for the container

  • bind_str (str) – Bind string for the container

  • gpu (bool) – True if the container should use gpu, False otherwise

__connect_to_server(self, benchmark: dacbench.abstract_benchmark.AbstractBenchmark)

Connects to the server and initializes the benchmark

get_environment(self)
run(self, agent: dacbench.abstract_agent.AbstractDACBenchAgent, number_of_episodes: int)
close(self)
__del__(self)
load_benchmark(self, benchmark: dacbench.abstract_benchmark.AbstractBenchmark, container_name: str, container_source: Union[str, pathlib.Path], container_tag: str)
class dacbench.container.remote_runner.RemoteRunnerServerFactory(pyro_demon)
create(self)
__call__(self)
dacbench.container.remote_runner.parser