Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
PyTorch Deep Learning Hands-On

You're reading from   PyTorch Deep Learning Hands-On Build CNNs, RNNs, GANs, reinforcement learning, and more, quickly and easily

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher Packt
ISBN-13 9781788834131
Length 250 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Sherin Thomas Sherin Thomas
Author Profile Icon Sherin Thomas
Sherin Thomas
Sudhanshu Passi Sudhanshu Passi
Author Profile Icon Sudhanshu Passi
Sudhanshu Passi
Arrow right icon
View More author details
Toc

The problem

Now we are ready to formulate the reinforcement learning problem mathematically, so let's get right into it.

The problem

Figure 7.1: Reinforcement learning framework

In the preceding diagram, you can see the setup of any reinforcement learning problem. In general, a reinforcement learning problem is characterized by an agent trying to learn things about its environment, as stated earlier.

Assuming that time evolves in discrete time steps, at time step 0, the agent looks at the environment. You can think of this observation as the situation the environment presents to the agent. It is also known as observing the state of the environment. Then the agent must select an appropriate action for that particular state. Next, the environment presents a new situation to the agent in response to the action taken by it. In the same time step, the environment gives the agent a reward, which gives some indication of whether the agent has responded appropriately or not. Then the process...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime