July 2018
Intermediate to advanced
254 pages
8h 12m
English
Let's begin implementing our Q-learning agent by implementing the Q_Learner class. The main methods of this class are the following:
You will later find that the methods in here are common and exist in almost all the agents we will be implementing in this book. This makes it easy for you to grasp them, as these methods will be repeated (with some modifications) again and again.
The discretize() function is not necessary for agent implementations in general, but when the state space is large and continuous, it may be better to discretize the space into countable bins or ranges of ...
Read now
Unlock full access