Book Image

TensorFlow 2 Reinforcement Learning Cookbook

By : Palanisamy P
Book Image

TensorFlow 2 Reinforcement Learning Cookbook

By: Palanisamy P

Overview of this book

With deep reinforcement learning, you can build intelligent agents, products, and services that can go beyond computer vision or perception to perform actions. TensorFlow 2.x is the latest major release of the most popular deep learning framework used to develop and train deep neural networks (DNNs). This book contains easy-to-follow recipes for leveraging TensorFlow 2.x to develop artificial intelligence applications. Starting with an introduction to the fundamentals of deep reinforcement learning and TensorFlow 2.x, the book covers OpenAI Gym, model-based RL, model-free RL, and how to develop basic agents. You'll discover how to implement advanced deep reinforcement learning algorithms such as actor-critic, deep deterministic policy gradients, deep-Q networks, proximal policy optimization, and deep recurrent Q-networks for training your RL agents. As you advance, you’ll explore the applications of reinforcement learning by building cryptocurrency trading agents, stock/share trading agents, and intelligent agents for automating task completion. Finally, you'll find out how to deploy deep reinforcement learning agents to the cloud and build cross-platform apps using TensorFlow 2.x. By the end of this TensorFlow book, you'll have gained a solid understanding of deep reinforcement learning algorithms and their implementations from scratch.
Table of Contents (11 chapters)

Chapter 7: Deploying Deep RL Agents to the Cloud

The cloud has become the de facto platform of deployment for AI-based products and solutions. Deep learning models running in the cloud are becoming increasingly common. The deployment of reinforcement learning-based agents to the cloud is, however, still very limited for a variety of reasons. This chapter contains recipes to equip yourself with tools and details to get ahead of the curve and build cloud-based Simulation-as-a-Service and Agent/Bot-as-a-Service applications using deep RL.

Specifically, the following recipes are discussed in this chapter:

  • Implementing the RL agent’s runtime components
  • Building RL environment simulators as a service
  • Training RL agents using a remote simulator service
  • Testing/evaluating RL agents
  • Packaging RL agents for deployment – a trading bot
  • Deploying RL agents to the cloud – a trading Bot-as-a-Service