TensorFlow 2 Reinforcement Learning Cookbook - Palanisamy Praveen - E-Book

TensorFlow 2 Reinforcement Learning Cookbook E-Book

Palanisamy Praveen

0,0
34,79 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

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.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 347

Veröffentlichungsjahr: 2021

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



TensorFlow 2 Reinforcement Learning Cookbook

Over 50 recipes to help you build, train, and deploy learning agents for real-world applications

Praveen Palanisamy

BIRMINGHAM—MUMBAI

TensorFlow 2 Reinforcement Learning Cookbook

Copyright © 2021 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Group Product Manager: Kunal Parikh

Publishing Product Manager: Aditi Gour

Senior Editor: David Sugarman

Content Development Editor: Joseph Sunil

Technical Editor: Manikandan Kurup

Copy Editor: Safis Editing

Project Coordinator: Aishwarya Mohan

Proofreader: Safis Editing

Indexer: Pratik Shirodkar

Production Designer: Alishon Mendonca

First published: January 2021

Production reference: 1140121

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham

B3 2PB, UK.

ISBN 978-1-83898-254-6

www.packt.com

Packt.com

Subscribe to our online digital library for full access to over 7,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.

Why subscribe?

Spend less time learning and more time coding with practical eBooks and videos from over 4,000 industry professionalsImprove your learning with Skill Plans built especially for youGet a free eBook or video every monthFully searchable for easy access to vital informationCopy and paste, print, and bookmark content

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at packt.com and, as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.

At www.packt.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.

Contributors

About the author

Praveen Palanisamy works on advancing AI for autonomous systems as a senior AI engineer at Microsoft. In the past, he has developed AI algorithms for autonomous vehicles using deep reinforcement learning, and has worked with start-ups and in academia to build autonomous robots and intelligent systems. He is the inventor of more than 15 patents on learning-based AI systems. He is the author of HOIAWOG: Hands-On Intelligent Agents with OpenAI Gym, which provides a step-by-step guide to developing deep RL agents to solve complex problems from scratch. He has a master's in robotics from Carnegie Mellon University.

About the reviewer

Wilson Choo is a computer vision engineer involved in working on validating computer vision and deep learning algorithms on many different hardware configurations. His strongest skills include algorithm benchmarking, integration, app development, and test automation. He is also a machine learning and computer vision enthusiast. He often researches trending CVDL algorithms and applies them to solve modern-day problems. Aside from this, Wilson likes to participate in hackathons, where he showcases his ideas and competes with other developers. His favorite programming languages are Python and C++.

Packt is searching for authors like you

If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.

Table of Contents

Preface

Chapter 1: 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 2: 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 3: 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 4: 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 5: 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 6: 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 7: 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 8: 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 9: 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