dacbench.envs.luby¶
Luby environment from “Dynamic Algorithm Configuration:Foundation of a New Meta-Algorithmic Framework” by A. Biedenkapp and H. F. Bozkurt and T. Eimer and F. Hutter and M. Lindauer. Original environment authors: André Biedenkapp, H. Furkan Bozkurt
Module Contents¶
Classes¶
Environment to learn Luby Sequence |
Functions¶
|
Generator for the Luby Sequence |
- class dacbench.envs.luby.LubyEnv(config)¶
Bases:
dacbench.AbstractEnvEnvironment to learn Luby Sequence
- step(self, action: int)¶
Execute environment step
- Parameters
action (int) – action to execute
- Returns
state, reward, done, info
- Return type
np.array, float, bool, dict
- reset(self) List[int]¶
Resets env
- Returns
Environment state
- Return type
numpy.array
- get_default_reward(self, _)¶
- get_default_state(self, _)¶
- close(self) bool¶
Close Env
- Returns
Closing confirmation
- Return type
bool
- render(self, mode: str = 'human') None¶
Render env in human mode
- Parameters
mode (str) – Execution mode
- dacbench.envs.luby.luby_gen(i)¶
Generator for the Luby Sequence