How to create an agent
In this how-to guide, we will give some tips as to how to create your own agent (RL-based or not).
-
Please read the Agent class, Environment class, and Logger class completely and carefully, otherwise you will not understand the context and meaning of what you’re building.
-
If you would like to read some source code of already implemented agents, please read first Simple Environment since all agents interact with this environment.
-
If you would like a simple not RL-based agent, please read the source code of
OnOff_Agent.py
. -
If you would like to implement a RL-based agent with discrete output such as a DQN Agent, plesae read the source of
DQN_Agent.py
. -
If you would like to implement a RL-based agent with continuous output such as a DDPG Agent, plesae read the source of
DDPG_Agent.py
.