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

Episodic versus continuous tasks

A lot of the tasks that we specify in the real world have a well-defined ending point. For example, if an agent is playing a game, then the episode or the task ends when the agent wins or loses, or dies.

In the situation of a self-driving car, the task ends when the car reaches the destination or it crashes. These tasks with well-defined ending points are called episodic tasks. The reward that the agent gets is given to it at the end of each episode and this is when the agent decides how well it has done in the environment. Then the agent goes on to the next episode, when it starts from scratch but has the prior information of the last episode with it and can perform better.

As time passes, over a period of episodes, the agent will learn to play the game or drive the car to a particular destination, and thus it will be trained. As you will remember, the agent's goal is to maximize the cumulative reward at the end of the episode.

However, there...

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