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

Cumulative discounted rewards

For an agent to maximize the cumulative reward, one method to think about is to maximize the reward at each time step. Doing this may have a negative effect because maximizing the reward in an initial time step might lead to the agent failing in the future quite quickly. Let's take an example of a walking robot. Assuming the speed of the robot is a factor in the reward, if the robot maximizes its speed at every time step, it might destabilize it and make it fall sooner.

We are training the robot to walk; thus, we can conclude that the agent cannot just focus on the current time step to maximize the reward; it needs to take all time steps into consideration. This would be the case with all reinforcement learning problems. Actions may have short- or long-term effects and the agent needs to understand the complexity of the action, and the effects that come from it from the environment.

In the preceding case, if the agent will learn that it cannot move...

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 R$50/month. Cancel anytime