hive.agents.random module
- class hive.agents.random.RandomAgent(obs_dim, act_dim, id=0, logger=None)[source]
Bases:
Agent
An agent that takes random steps at each timestep.
- Parameters
obs_dim – The shape of the observations.
act_dim (int) – The number of actions available to the agent.
id – Agent identifier.
logger (ScheduledLogger) – Logger used to log agent’s metrics.
- update(update_info)[source]
Updates the agent.
- Parameters
update_info (dict) – Contains information agent needs to update itself.