nip.utils.hyper_params.get_agent_part_flags

nip.utils.hyper_params.get_agent_part_flags#

nip.utils.hyper_params.get_agent_part_flags(hyper_params: HyperParameters) tuple[bool, bool][source]#

Get flags indicating which agent parts are used.

Parameters:

hyper_params (HyperParameters) – The parameters of the experiment.

Returns:

  • use_critic (bool | None) – Whether the experiment uses a critic.

  • use_single_body (bool) – Whether to create a single body. When there is a critic and a single body, the critic and actor share the same body. When there is a critic and two bodies, the critic and actor have separate bodies.

  • use_whole_agent (bool) – Whether agents are composed of a single part, and are not split body and heads.