Deep Reinforcement Learning: Write Bots in Python that can Play Games

Deep Reinforcement Learning: Write Bots in Python that can Play Games

About the Book

Reinforcement Learning (RL) is an exciting new field of machine learning, in which bots learn by playing games.

It is different from traditional machine learning (supervised or unsupervised) in that there are no training samples with expected outputs.

In this book, we'll learn RL by programming bots that can play games. We will go over basic Q learning techniques, as well as Deep Reinforcement Learning, that uses Neural Networks.

My book Build Your Own Neural Network is a per-requisite.

About the Author

Shantnu Tiwari
Shantnu Tiwari

Shantnu trained as an Electronics Engineer, and spent several years working with low level code, including DSPs,  embedded systems and embedded Linux.

  Soon, he grew disillusioned by fixing dangling pointers, memory leaks, race conditions, bugs which only appeared once every two weeks.

In desperation, Shantnu threw up his hands and said, “Lord! Is there more than life to this?”

And that night, SpongBob SquarePants appeared in his dream. “My son,” he said, “try Python. It will fix all your problems.”

And Shantnu did, and lo! All was well.

And now, Shantnu is sharing the love…

Table of Contents

  • Introduction to Reinforcement Learning
    • Deep Reinforcement Learning(DRL) Today
    • Pre-requisites
    • A Virtual Machine to run the code
    • If you get stuck….
  • Q Learning by Hand
    • Q Learning
    • Q Learning Matrixes
    • The Q Learning Formula
    • Hand Learning Q Learning
  • Q Learning: The Code
  • A Quick Intro to OpenAI
  • Simpler Methods of RL
    • Random Search
    • Hill climbing
  • Q Learning Example 2: Frozen Lake
    • Winning the game
  • A Quick Intro to Deep Reinforcement Learning
  • Build our own Deep Network
    • Our Play and Train Function
  • The Keras RL Library
  • More Learning Tools
    • Introduction to VizDoom
    • And so we come to an End

The Leanpub 60-day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $12 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub