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

Putting it all together

With our newfound knowledge, we can define the minimax objective in full:

In short, the generator tries to minimize the objective, while the discriminator tries to maximize it. Note that while the discriminator should minimize its loss, the minimax objective is a negative of the discriminator loss, and therefore the discriminator has to maximize it.

The following is a step-by-step training algorithm, as it introduced by the authors of the GAN framework.

Repeat for a number of iterations:

  1. Repeat for k steps, where k is a hyperparameter:
    • Sample a mini-batch of m random samples from the latent space,.
    • Sample a mini-batch ...
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