unilab.algos.torch.hora.runtime

Config-driven runtime selection helpers for HORA teacher-policy RL.

Functions

is_hora_appo_runtime(rl_cfg)

Check whether the resolved algo config selects the HORA APPO runtime.

is_hora_ppo_runtime(rl_cfg)

Check whether the resolved algo config selects the HORA PPO runtime.

is_hora_sac_runtime(rl_cfg)

Check whether the resolved algo config selects the HORA SAC runtime.

resolve_hora_runtime_impl(rl_cfg)

Return the explicit HORA runtime marker from a resolved algo config.

unilab.algos.torch.hora.runtime.resolve_hora_runtime_impl(rl_cfg)[source]

Return the explicit HORA runtime marker from a resolved algo config.

Parameters:

rl_cfg (dict[str, Any]) – Resolved algorithm config dictionary from Hydra composition.

Return type:

str | None

Returns:

Runtime marker string when the owner YAML selected one, otherwise None.

unilab.algos.torch.hora.runtime.is_hora_appo_runtime(rl_cfg)[source]

Check whether the resolved algo config selects the HORA APPO runtime.

Parameters:

rl_cfg (dict[str, Any]) – Resolved algorithm config dictionary from Hydra composition.

Return type:

bool

Returns:

True when the config explicitly selects the HORA APPO runtime.

unilab.algos.torch.hora.runtime.is_hora_ppo_runtime(rl_cfg)[source]

Check whether the resolved algo config selects the HORA PPO runtime.

Parameters:

rl_cfg (dict[str, Any]) – Resolved algorithm config dictionary from Hydra composition.

Return type:

bool

Returns:

True when the config explicitly selects the HORA PPO runtime.

unilab.algos.torch.hora.runtime.is_hora_sac_runtime(rl_cfg)[source]

Check whether the resolved algo config selects the HORA SAC runtime.

Parameters:

rl_cfg (dict[str, Any])

Return type:

bool