TensorFlow 2 Reinforcement Learning Cookbook: Over 50 recipes to help you build, train, and deploy learning agents for real-world applications
Book information
Description
Discover recipes for developing AI applications to solve a variety of real-world business problems using reinforcement learning Key FeaturesDevelop and deploy deep reinforcement learning-based solutions to production pipelines, products, and servicesExplore popular reinforcement learning algorithms such as Q-learning, SARSA, and the actor-critic methodCustomize and build RL-based applications for performing real-world tasksBook Description 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. What you will learnBuild deep reinforcement learning agents from scratch using the all-new TensorFlow 2.x and Keras APIImplement state-of-the-art deep reinforcement learning algorithms using minimal codeBuild, train, and package deep RL agents for cryptocurrency and stock tradingDeploy RL agents to the cloud and edge to test them by creating desktop, web, and mobile apps and cloud servicesSpeed up agent development using distributed DNN model trainingExplore distributed deep RL architectures and discover opportunities in AIaaS (AI as a Service)Who this book is for The book is for machine learning application developers, AI and applied AI researchers, data scientists, deep learning practitioners, and students with a basic understanding of reinforcement learning concepts who want to build, train, and deploy their own reinforcement learning systems from scratch using TensorFlow 2.x. Table of ContentsDeveloping building blocks for Deep RL using TensorFlow 2.xImplementing value-based, policy gradients and actor-critic Deep RL algorithmsImplementing Advanced Deep RL algorithmsRL in real-world: Building intelligent trading agentsRL in Real-World: Building Stock Trading AgentsRL in real-world: Building intelligent agents to complete your ToDosDeploying Deep RL Agents to the CloudBuilding cross-platform (web, desktop, mobile) Deep-RL Apps using TensorFlow 2.xDistributed training and automated production deployment pipeline for Deep RL Apps Cover Title Page Copyright and Credits About Packt Contributors Table of Contents Preface Chapter 01: Developing Building Blocks for Deep Reinforcement Learning Using Tensorflow 2.x Technical requirements Building an environment and reward mechanism for training RL agents Getting ready How to do it… How it works… Implementing neural network-based RL policies for discrete action spaces and decision-making problems Getting ready How to do it… How it works… Implementing neural network-based RL policies for continuous action spaces and continuous-control problems Getting ready How to do it… How it works… Working with OpenAI Gym for RL training environments Getting ready How to do it… How it works… See also Building a neural agent Getting ready How to do it… How it works… Building a neural evolutionary agent Getting ready How to do it… How it works… See also Chapter 02: Implementing Value-Based, Policy-Based, and Actor-Critic Deep RL Algorithms Technical requirements Building stochastic environments for training RL agents Getting ready How to do it… How it works… Building value-based reinforcement learning agent algorithms Getting ready How to do it… How it works… Implementing temporal difference learning Getting ready How to do it… How it works… Building Monte Carlo prediction and control algorithms for RL Getting ready How to do it… How it works… Implementing the SARSA algorithm and an RL agent Getting ready How to do it… How it works… Building a Q-learning agent Getting ready How to do it… How it works… Implementing policy gradients Getting ready How to do it… How it works… Implementing actor-critic RL algorithms Getting ready How to do it… How it works… Chapter 03: Implementing Advanced RL Algorithms Technical requirements Implementing the Deep Q-Learning algorithm, DQN, and Double-DQN agent Getting ready How to do it… How it works… Implementing the Dueling DQN agent Getting ready How to do it… How it works… Implementing the Dueling Double DQN algorithm and DDDQN agent Getting ready How to do it… How it works… Implementing the Deep Recurrent Q-Learning algorithm and DRQN agent Getting ready How to do it… How it works… Implementing the Asynchronous Advantage Actor-Critic algorithm and A3C agent Getting ready How to do it… How it works… Implementing the Proximal Policy Optimization algorithm and PPO agent Getting ready How to do it… How it works… Implementing the Deep Deterministic Policy Gradient algorithm and DDPG agent Getting ready How to do it… How it works… Chapter 04: Reinforcement Learning in the Real World – Building Cryptocurrency Trading Agents Technical requirements Building a Bitcoin trading RL platform using real market data Getting ready How to do it… How it works… Building an Ethereum trading RL platform using price charts Getting ready How to do it… How it works… Building an advanced cryptocurrency trading platform for RL agents Getting ready How to do it… How it works… Training a cryptocurrency trading bot using RL Getting ready How to do it… How it works… Chapter 05: Reinforcement Learning in the Real World – Building Stock/Share Trading Agents Technical requirements Building a stock market trading RL platform using real stock exchange data Getting ready How to do it… How it works… Building a stock market trading RL platform using price charts Getting ready How to do it… How it works… Building an advanced stock trading RL platform to train agents to mimic professional traders Getting ready How to do it… How it works… Chapter 06: Reinforcement Learning in the Real World – Building Intelligent Agents to Complete Your To-Dos Technical requirements Building learning environments for real-world RL Getting ready How to do it… How it works… Building an RL Agent to complete tasks on the web – Call to Action Getting ready How to do it… How it works… Building a visual auto-login bot Getting ready How to do it… How it works… Training an RL Agent to automate flight booking for your travel Getting ready How to do it… How it works… Training an RL Agent to manage your emails Getting ready How to do it… How it works… Training an RL Agent to automate your social media account management Getting ready How to do it… How it works… Chapter 07: Deploying Deep RL Agents to the Cloud Technical requirements Implementing the RL agent’s runtime components Getting ready How to do it… How it works… Building RL environment simulators as a service Getting ready How to do it… How it works… Training RL agents using a remote simulator service Getting ready How to do it… How it works… Testing/evaluating RL agents Getting ready How to do it… How it works… Packaging RL agents for deployment – a trading bot Getting ready How to do it… How it works… Deploying RL agents to the cloud – a trading Bot-as-a-Service Getting ready How to do it… How it works… Chapter 08: Distributed Training for Accelerated Development of Deep RL Agents Technical requirements Distributed deep learning models using TensorFlow 2.x – Multi-GPU training Getting ready How to do it... How it works... Scaling up and out – Multi-machine, multi-GPU training Getting ready How to do it... How it works... Training Deep RL agents at scale – Multi-GPU PPO agent Getting ready How to do it... How it works... Building blocks for distributed Deep Reinforcement Learning for accelerated training Getting ready How to do it... How it works... Large-scale Deep RL agent training using Ray, Tune, and RLLib Getting ready How to do it... How it works... Chapter 09: Deploying Deep RL Agents on Multiple Platforms Technical requirements Packaging Deep RL agents for mobile and IoT devices using TensorFlow Lite Getting ready How to do it... How it works... Deploying RL agents on mobile devices Getting ready How to do it... How it works... Packaging Deep RL agents for the web and Node.js using TensorFlow.js Getting ready How to do it... How it works... Deploying a Deep RL agent as a service Getting ready How to do it... How it works... Packaging Deep RL agents for cross-platform deployment Getting ready How to do it... How it works... Other Books You May Enjoy Index
Similar books
TensorFlow 2 Reinforcement Learning Cookbook: Over 50 recipes to help you build, train, and deploy learning agents for real-world applications
2021 · EPUB
Hands-On Intelligent Agents with OpenAI Gym: Your guide to developing AI agents using deep reinforcement learning. Code
2018 · ZIP
Hands-On Intelligent Agents with OpenAI Gym: Your guide to developing AI agents using deep reinforcement learning
2018 · EPUB
Hands-On Intelligent Agents with OpenAI Gym: Your Guide to Developing AI Agents Using Deep Reinforcement Learning
EPUB
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF