base¶
BaseSpace
and its config.
- class cneuromax.fitting.neuroevolution.space.base.BaseSpaceConfig(eval_num_steps='${config.eval_num_steps}', logging='${config.logging}')[source]¶
Bases:
object
Holds
BaseSpace
config values.- Parameters:
eval_num_steps (
int
, default:'${config.eval_num_steps}'
) – Seeeval_num_steps
.
- class cneuromax.fitting.neuroevolution.space.base.BaseSpace(config, num_pops, *, evaluates_on_gpu)[source]¶
Bases:
ABC
Space Base class.
A
Space
is a torchrl environment wrapper with which agents produce behaviour and receive fitness scores.- Parameters:
num_pops (
int
) – Number of agents interacting with each other in a given space.evaluates_on_gpu (
bool
) – Whether GPU devices are used to evaluate agents.