pantheonrl.common.agents.StaticPolicyAgent
- class StaticPolicyAgent(policy)[source]
Bases:
AgentAgent representing a static (not learning) policy.
- Parameters:
policy (ActorCriticPolicy) – Policy representing the agent’s responses to observations
Methods
Return an action given an observation.
Update does nothing since the agent does not learn.
- get_action(obs)[source]
Return an action given an observation.
- Parameters:
obs (Observation) – The observation to use
- Returns:
The action to take
- Return type:
ndarray