dacbench.envs.cma_es
CMA-ES environment adapted from CMAWorld in “Learning Step-size Adaptation in CMA-ES” by G.Shala and A. Biedenkapp and N.Awad and S. Adriaensen and M.Lindauer and F. Hutter. Original author: Gresa Shala
Module Contents
Functions
|
- dacbench.envs.cma_es._norm(x)
- class dacbench.envs.cma_es.CMAESEnv(config)
Bases:
dacbench.AbstractEnvEnvironment to control the step size of CMA-ES
- step(self, action)
Execute environment step
- Parameters
action (list) – action to execute
- Returns
state, reward, done, info
- Return type
np.array, float, bool, dict
- reset(self)
Reset environment
- Returns
Environment state
- Return type
np.array
- close(self)
No additional cleanup necessary
- Returns
Cleanup flag
- Return type
bool
- render(self, mode: str = 'human')
Render env in human mode
- Parameters
mode (str) – Execution mode
- get_default_reward(self, _)
Compute reward
- Returns
Reward
- Return type
float
- get_default_state(self, _)
Gather state description
- Returns
Environment state
- Return type
dict