garage.np.policies.fixed_policy module¶
Policy that performs a fixed sequence of actions.
-
class
FixedPolicy
(env_spec, scripted_actions, agent_infos=None)[source]¶ Bases:
garage.np.policies.policy.Policy
Policy that performs a fixed sequence of actions.
Parameters: -
get_action
(observation)[source]¶ Get next action.
Parameters: observation (np.ndarray) – Ignored. Raises: ValueError
– If policy is currently vectorized (reset was called with more than one done value).Returns: - The action and agent_info
- for this time step.
Return type: tuple[np.ndarray, dict[str, np.ndarray]]
-
get_actions
(observations)[source]¶ Get next action.
Parameters: observations (np.ndarray) – Ignored. Raises: ValueError
– If observations has length greater than 1.Returns: - The action and agent_info
- for this time step.
Return type: tuple[np.ndarray, dict[str, np.ndarray]]
-
get_param_values
()[source]¶ Return policy params (there are none).
Returns: Empty tuple. Return type: tuple
-