Random¶
A random agent that samples actions uniformly at random from the action space.
Useful for establishing baseline performance and testing environments.
This is a non-learning agent: the update() function does nothing.
- class myriad.agents.classical.random.AgentParams(action_space)[source]¶
Bases:
objectStatic parameters for the random agent.
- Variables:
action_space (myriad.core.spaces.Space) – Action space to sample from.
- __init__(action_space)¶
- replace(**updates)¶
Returns a new object replacing the specified fields with new values.
- class myriad.agents.classical.random.AgentState[source]¶
Bases:
objectState of the random agent.
The random agent is stateless, so this is an empty dataclass.
- __init__()¶
- replace(**updates)¶
Returns a new object replacing the specified fields with new values.