How it works...

In the Q-learning algorithm, the game world is treated as a state machine. It is important to bear in mind the meaning of the parameters:

  • alpha: This is the learning rate
  • gamma: This is the discount rate
  • rho: This is the randomness of exploration
  • nu: This is the length of the walk

Get Unity 2018 Artificial Intelligence Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.