dacbench.envs.sigmoid
Sigmoid 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 for tracing sigmoid curves |
|
Environment for tracing sigmoid curves with a continuous state on the x-axis |
|
Environment for tracing sigmoid curves with a continuous state on the x-axis |
- class dacbench.envs.sigmoid.SigmoidEnv(config)
Bases:
dacbench.AbstractEnvEnvironment for tracing sigmoid curves
- _sig(self, x, scaling, inflection)
Simple sigmoid function
- 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) None
Render env in human mode
- Parameters
mode (str) – Execution mode
- class dacbench.envs.sigmoid.ContinuousStateSigmoidEnv(config)
Bases:
dacbench.envs.sigmoid.SigmoidEnvEnvironment for tracing sigmoid curves with a continuous state on the x-axis
- 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
- class dacbench.envs.sigmoid.ContinuousSigmoidEnv(config)
Bases:
dacbench.envs.sigmoid.SigmoidEnvEnvironment for tracing sigmoid curves with a continuous state on the x-axis
- step(self, action: numpy.ndarray)
Execute environment step. !!NOTE!! The action here is a list of floats and not a single number !!NOTE!!
- Parameters
action (list of floats) – action(s) to execute
- Returns
state, reward, done, info
- Return type
np.array, float, bool, dict
- dacbench.envs.sigmoid.config