hive.agents.random module
- class hive.agents.random.RandomAgent(observation_space, action_space, id=0, logger=None, **kwargs)[source]
Bases:
Agent
An agent that takes random steps at each timestep.
- Parameters
observation_space (gym.Space) – The shape of the observations.
action_space (gym.Space) – The number of actions available to the agent.
id – Agent identifier.
logger (ScheduledLogger) – Logger used to log agent’s metrics.
- update(update_info, agent_traj_state=None)[source]
Updates the agent.
- Parameters
update_info (dict) – Contains information from the environment agent needs to update itself.
agent_traj_state – Contains necessary state information for the agent to process current trajectory. This should be updated and returned.
- Returns
Agent trajectory state.