Applied Reinforcement Learning with Python -  Taweh Beysolow II

Applied Reinforcement Learning with Python (eBook)

With OpenAI Gym, Tensorflow, and Keras
eBook Download: PDF
2019 | 1. Auflage
XV, 177 Seiten
Apress (Verlag)
978-1-4842-5127-0 (ISBN)
Systemvoraussetzungen
46,99 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

Delve into the world of reinforcement learning algorithms and apply them to different use-cases via Python. This book covers important topics such as policy gradients and Q learning, and utilizes frameworks such as Tensorflow, Keras, and OpenAI Gym.

Applied Reinforcement Learning with Python introduces you to the theory behind reinforcement learning (RL) algorithms and the code that will be used to implement them. You will take a guided tour through features of OpenAI Gym, from utilizing standard libraries to creating your own environments, then discover how to frame reinforcement learning problems so you can research, develop, and deploy RL-based solutions.


What You'll Learn

  • Implement reinforcement learning with Python 
  • Work with AI frameworks such as OpenAI Gym, Tensorflow, and Keras
  • Deploy and train reinforcement learning-based solutions via cloud resources
  • Apply practical applications of reinforcement learning

 

Who This Book Is For 

Data scientists, machine learning engineers and software engineers familiar with machine learning and deep learning concepts.



Taweh Beysolow II is a data scientist and author currently based in the United States. He has a Bachelor of Science degree in economics from St. Johns University and a Master of Science in Applied Statistics from Fordham University. After successfully exiting the startup he co-founded, he now is a Director at Industry Capital, a San Francisco based Private Equity firm, where he helps lead the Cryptocurrency and Blockchain platforms.
Delve into the world of reinforcement learning algorithms and apply them to different use-cases via Python. This book covers important topics such as policy gradients and Q learning, and utilizes frameworks such as Tensorflow, Keras, and OpenAI Gym. Applied Reinforcement Learning with Python introduces you to the theory behind reinforcement learning (RL) algorithms and the code that will be used to implement them. You will take a guided tour through features of OpenAI Gym, from utilizing standard libraries to creating your own environments, then discover how to frame reinforcement learning problems so you can research, develop, and deploy RL-based solutions.What You'll LearnImplement reinforcement learning with Python Work with AI frameworks such as OpenAI Gym, Tensorflow, and KerasDeploy and train reinforcement learning based solutions via cloud resourcesApply practical applications of reinforcement learning  Who This Book Is For Data scientists, machine learning engineers and software engineers familiar with machine learning and deep learning concepts.

Table of Contents 5
About the Author 9
About the Technical Reviewer 10
Acknowledgments 11
Introduction 12
Chapter 1: Introduction to Reinforcement Learning 13
History of Reinforcement Learning 14
MDPs and their Relation to  Reinforcement Learning 15
Reinforcement Learning Algorithms and RL Frameworks 19
Q Learning 22
Actor-Critic Models 23
Applications of Reinforcement Learning 24
Classic Control Problems 24
Super Mario Bros. 25
Doom 26
Reinforcement-Based Marketing Making 27
Sonic the Hedgehog 28
Conclusion 29
Chapter 2: Reinforcement Learning Algorithms 30
OpenAI Gym 30
Policy-Based Learning 31
Policy Gradients Explained Mathematically 33
Gradient Ascent Applied to Policy Optimization 35
Using Vanilla Policy Gradients on the Cart Pole Problem 36
What Are Discounted Rewards and Why Do We Use Them? 40
Drawbacks to Policy Gradients 47
Proximal Policy Optimization (PPO) and Actor-Critic Models 48
Implementing PPO and Solving Super Mario Bros. 49
Overview of Super Mario Bros. 50
Installing Environment Package 51
Structure of the Code in Repository 51
Model Architecture 52
Working with a More Difficult Reinforcement Learning Challenge 58
Dockerizing Reinforcement Learning Experiments 61
Results of the Experiment 63
Conclusion 64
Chapter 3: Reinforcement Learning Algorithms: Q Learning and Its Variants 65
Q Learning 65
Temporal Difference (TD) Learning 67
Epsilon-Greedy Algorithm 69
Frozen Lake Solved with Q Learning 70
Deep Q Learning 75
Playing Doom with Deep Q Learning 76
Simple Doom Level 81
Training and Performance 83
Limitations of Deep Q Learning 84
Double Q Learning and Double Deep Q Networks 84
Conclusion 85
Chapter 4: Market Making via Reinforcement Learning 87
What Is Market Making? 87
Trading Gym 91
Why Reinforcement Learning for This Problem? 92
Synthesizing Order Book Data with Trading Gym 94
Generating Order Book Data with Trading Gym 95
Experimental Design 97
RL Approach 1: Policy Gradients 100
RL Approach 2: Deep Q Network 101
Results and Discussion 103
Conclusion 104
Chapter 5: Custom OpenAI Reinforcement Learning Environments 105
Overview of Sonic the Hedgehog 105
Downloading the Game 106
Writing the Code for the Environment 108
A3C Actor-Critic 113
Conclusion 121
Appendix A: Source Code 123
Market Making Model Utilities 123
Policy Gradient Utilities 125
Models 126
Chapter 1 135
OpenAI Example 135
Chapter 2 135
Cart Pole Example 135
Super Mario Example 140
Chapter 3 144
Frozen Lake Example 144
Doom Example 149
Chapter 4 156
Market Making Example 156
Chapter 5 168
Sonic Example 168
Index 174

Erscheint lt. Verlag 23.8.2019
Zusatzinfo XV, 168 p. 47 illus.
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
Informatik Theorie / Studium Künstliche Intelligenz / Robotik
Schlagworte Artificial Intelligence • Deep learning • Keras • machine learning • Open AI Gym • Python • PyTorch • Reinforcement Learning • tensorflow
ISBN-10 1-4842-5127-X / 148425127X
ISBN-13 978-1-4842-5127-0 / 9781484251270
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 3,5 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
der Praxis-Guide für Künstliche Intelligenz in Unternehmen - Chancen …

von Thomas R. Köhler; Julia Finkeissen

eBook Download (2024)
Campus Verlag
38,99
Wie du KI richtig nutzt - schreiben, recherchieren, Bilder erstellen, …

von Rainer Hattenhauer

eBook Download (2023)
Rheinwerk Computing (Verlag)
24,90