Skip to 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
386 pages
11h 13m
English
Packt Publishing
Content preview from Python Deep Learning - Second Edition

Training the generator

We'll train the generator by making it better at deceiving the discriminator. To do this, we'll need both networks, similar to the way we train the discriminator with fake samples:

  1. We start with a random latent vector, , and feed it through both the generator and discriminator, to produce the output, .
  1. The loss function is the same as the discriminator loss. However, our goal here is to maximize it, rather than minimize it, since we want to deceive the discriminator.
  2. In the backward pass, the discriminator weights, ...
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