Skip to Main Content
Python Deep Learning - Second Edition
book

Python Deep Learning - Second Edition

by Ivan Vasilev, Daniel Slater, Gianmario Spacagna, Peter Roelants, Valentino Zocca
January 2019
Intermediate to advanced content levelIntermediate to advanced
386 pages
11h 13m
English
Packt Publishing
Content preview from Python Deep Learning - Second Edition

Behavioral cloning with PyTorch

In this section, we'll implement something fun, a behavioral cloning example with PyTorch. We'll do this with the help of the CarRacing-v0 OpenAI Gym environment, displayed as follows:

In the CarRacing-v0 environment, the agent is a racing car. A birds-eye view is used the whole time
This example contains multiple Python files. In this section, we'll mention the most important parts. The full source code lives at https://github.com/ivan-vasilev/Python-Deep-Learning-SE/tree/master/ch10/imitation_learning.

The goal is for the red racing car to drive around the track as quickly as it can without sliding out of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Deep Learning

Python Deep Learning

Valentino Zocca, Gianmario Spacagna, Daniel Slater, Peter Roelants

Publisher Resources

ISBN: 9781789348460Supplemental Content